Skip to content

Instantly share code, notes, and snippets.

@shwetaneelsharma
Created November 1, 2022 05:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shwetaneelsharma/aa71d98701088ea7e86bd5e7aa27dada to your computer and use it in GitHub Desktop.
Save shwetaneelsharma/aa71d98701088ea7e86bd5e7aa27dada to your computer and use it in GitHub Desktop.
it('check a11y - login component', () => {
cy.log(
'Inject the axe-core library at runtime into the DOM of the selector under test',
);
cy.injectAxe();
cy.mount(<Login />);
cy.checkPageA11y('[role="main"]');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment