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.
2 parents 37d7777 + f798ae9 commit d58f9a8Copy full SHA for d58f9a8
accessibility/scanner/index.js
@@ -20,7 +20,7 @@ const performModifiedScan = (originalFn, Subject, stateType, ...args) => {
20
21
const runCustomizedCommand = () => {
22
if (!Subject) {
23
- const cypressCommandSubject = cy.subject?.() || cy.wrap(null);
+ const cypressCommandSubject = cy.subject ? cy.subject() : cy.wrap(null);
24
customChaining.then(() => cypressCommandSubject).then(() => originalFn(...args));
25
} else {
26
const timeoutArg = args.find(arg => arg?.timeout)?.timeout;
0 commit comments