Skip to content

Commit

Permalink
Remove comments and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
fullsushidev committed Sep 21, 2023
1 parent 020225d commit ad5a753
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cypress/support/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Cypress.Commands.add('login', () => {
cy.log(JSON.stringify(keycloakLoginFields[strategy]));
cy.get(keycloakLoginFields[strategy]['username']).should('be.visible');

if (keycloakLoginFields[strategy]['two-step']) {
if (keycloakLoginFields[strategy]['2step']) {
cy.log('Two step verfication');
cy.getUsername().then((uname) =>
cy.get(keycloakLoginFields[strategy]['username']).type(`${uname}`)
Expand All @@ -59,7 +59,6 @@ Cypress.Commands.add('login', () => {
cy.getUsername().then((uname) =>
cy.get(keycloakLoginFields[strategy]['username']).type(`${uname}`)
);
cy.get('#login-show-step2').click();
cy.getPassword().then((password) =>
cy
.get(keycloakLoginFields[strategy]['password'])
Expand All @@ -69,11 +68,4 @@ Cypress.Commands.add('login', () => {
}

cy.visit(Cypress.config().baseUrl + clustersUrl);
// if (strategy == "env-ephemeral") {
// cy.visit(Cypress.config().baseUrl + clustersUrl);
// cy.url().should('eq', Cypress.config().baseUrl + clustersUrl);
// cy.get('[data-quickstart-id="ansible_automation-analytics_reports"]').click();
// cy.get('a[href="' + Cypress.config().baseUrl + reportsUrl + '"]', { timeout: 10000 }).should('be.visible');
// cy.get('[data-ouia-component-type="PF4/Title"]', { timeout: 10000 }).should('be.visible');
// }
});

0 comments on commit ad5a753

Please sign in to comment.