Skip to content

Commit 6d840b4

Browse files
author
Yehudit Kerido
committed
feat(ws): Notebooks 2.0 // Frontend // Fetch workspaces
Signed-off-by: Yehudit Kerido <yehudit.kerido@nokia.com>
1 parent f98041c commit 6d840b4

File tree

1 file changed

+5
-0
lines changed
  • workspaces/frontend/src/__tests__/cypress/cypress/support/commands

1 file changed

+5
-0
lines changed

workspaces/frontend/src/__tests__/cypress/cypress/support/commands/axe.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ declare global {
55
namespace Cypress {
66
interface Chainable {
77
testA11y: (context?: Parameters<cy['checkA11y']>[0]) => void;
8+
getDataTest(dataTestSelector: string): Chainable<JQuery<HTMLElement>>;
89
}
910
}
1011
}
1112

13+
Cypress.Commands.add('getDataTest', (dataTestSelector) => {
14+
return cy.get(`[data-test="${dataTestSelector}"]`);
15+
});
16+
1217
Cypress.Commands.add('testA11y', { prevSubject: 'optional' }, (subject, context) => {
1318
const test = (c: Parameters<typeof cy.checkA11y>[0]) => {
1419
cy.window({ log: false }).then((win) => {

0 commit comments

Comments
 (0)