Skip to content

Commit 4ffe80b

Browse files
add check for cyp 10 version
1 parent 2ac03fd commit 4ffe80b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accessibility/scanner/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ afterEach(() => {
308308

309309
})
310310

311-
if (!Cypress.Commands.hasOwnProperty('_lambdaTestAcessibilityQueryAdded')) {
311+
if (!Cypress.Commands.hasOwnProperty('_lambdaTestAcessibilityQueryAdded') && (overRideCommands)) {
312312
Cypress.Commands.addQuery('performScanSubjectQuery', function (chaining, setTimeout) {
313313
this.set('timeout', setTimeout);
314314
return () => cy.getSubjectFromChain(chaining);

0 commit comments

Comments
 (0)