Skip to content

Commit

Permalink
Tweak tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nwmac committed Jan 10, 2025
1 parent 374b487 commit f5b68c3
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions cypress/e2e/tests/accessibility/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,19 @@ describe('Login page a11y testing', { tags: ['@adminUser', '@accessibility'] },
loginPage.goTo();
loginPage.waitForPage();
cy.injectAxe();
loginPage.username().set('test user');

cy.checkPageAccessibility();
});

loginPage.username().set('test');
loginPage.submit();
it('locale selector', () => {
const loginPage = new LoginPagePo();

loginPage.goTo();
loginPage.waitForPage();
cy.injectAxe();
cy.get('[data-testid="locale-selector"]').click();
cy.checkPageAccessibility();
cy.checkElementAccessibility('#username', 'Username field checks');
});

// it('locale selector', () => {
// loginPage.goTo();
// loginPage.waitForPage();

// cy.injectAxe();
// cy.get('[data-testid="locale-selector"]').click();
// cy.checkPageAccessibility();
// cy.checkElementAccessibility('#username', 'Username field checks');
// });
});

0 comments on commit f5b68c3

Please sign in to comment.