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 077c1d0 + 11d8057 commit 37d7777Copy full SHA for 37d7777
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?.();
+ const cypressCommandSubject = 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