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 ce79655 commit e90ee94Copy full SHA for e90ee94
bin/accessibility-automation/cypress/index.js
@@ -424,7 +424,11 @@ Cypress.Commands.add('getAccessibilityResults', () => {
424
}
425
});
426
427
-Cypress.Commands.addQuery('performScanSubjectQuery', function (chaining, setTimeout) {
428
- this.set('timeout', setTimeout);
429
- return () => cy.getSubjectFromChain(chaining);
430
-});
+if (!Cypress.Commands.hasOwnProperty('_myQueryAdded')) {
+ Cypress.Commands.addQuery('performScanSubjectQuery', function (chaining, setTimeout) {
+ this.set('timeout', setTimeout);
+ return () => cy.getSubjectFromChain(chaining);
431
+ });
432
+ Cypress.Commands._myQueryAdded = true;
433
+}
434
+
0 commit comments