Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cypress/integration/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
it('works!', () => {
cy.visit('/');
cy.injectAxe();
cy.get('button[data-testid="test-btn"]').checkA11y();
cy.checkA11y();
});
12 changes: 12 additions & 0 deletions cypress/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
/// <reference types="cypress" />
// ***********************************************************
// This example plugins/index.js can be used to load plugins
Expand All @@ -19,4 +20,15 @@
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
on('task', {
log(message) {
console.log(message);
return null;
},

table(message) {
console.table(message);
return null;
},
});
};
Loading