We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ce79655 + 3f21271 commit 4214c79Copy full SHA for 4214c79
bin/accessibility-automation/cypress/index.js
@@ -424,7 +424,10 @@ 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('_browserstackSDKQueryAdded')) {
+ Cypress.Commands.addQuery('performScanSubjectQuery', function (chaining, setTimeout) {
+ this.set('timeout', setTimeout);
+ return () => cy.getSubjectFromChain(chaining);
431
+ });
432
+ Cypress.Commands._browserstackSDKQueryAdded = true;
433
+}
0 commit comments