We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d840b4 commit 683e6d3Copy full SHA for 683e6d3
workspaces/frontend/src/__tests__/cypress/cypress/support/commands/axe.ts
@@ -5,15 +5,10 @@ declare global {
5
namespace Cypress {
6
interface Chainable {
7
testA11y: (context?: Parameters<cy['checkA11y']>[0]) => void;
8
- getDataTest(dataTestSelector: string): Chainable<JQuery<HTMLElement>>;
9
}
10
11
12
13
-Cypress.Commands.add('getDataTest', (dataTestSelector) => {
14
- return cy.get(`[data-test="${dataTestSelector}"]`);
15
-});
16
-
17
Cypress.Commands.add('testA11y', { prevSubject: 'optional' }, (subject, context) => {
18
const test = (c: Parameters<typeof cy.checkA11y>[0]) => {
19
cy.window({ log: false }).then((win) => {
0 commit comments