Skip to content

Commit

Permalink
Addressing review comments about e2e cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CDimonaco committed Jan 11, 2023
1 parent f09182c commit f390b62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
4 changes: 1 addition & 3 deletions test/e2e/cypress/e2e/sap_systems_overview.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,7 @@ context('SAP Systems Overview', () => {

describe('SAP Systems Tagging', () => {
before(() => {
cy.apiLogin().then(() => {
cy.removeTagsFromView();
});
cy.removeTagsFromView();
});

availableSAPSystems.forEach(({ sid, tag }) => {
Expand Down
12 changes: 0 additions & 12 deletions test/e2e/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,6 @@

const initializeOpenSidebar = () => cy.setCookie('sidebar-collapsed', 'false');

Cypress.Commands.add('login', () => {
const [username, password] = [
Cypress.env('login_user'),
Cypress.env('login_password'),
];
cy.visit('/session/new');
cy.get('#username').type(username);
cy.get('#password').type(password);
cy.get('[data-testid="login-submit"]').click();
cy.url().should('include', '/');
});

const apiLogin = () => {
const [username, password] = [
Cypress.env('login_user'),
Expand Down

0 comments on commit f390b62

Please sign in to comment.