Skip to content

Commit 426d7d7

Browse files
use correct window
1 parent a3c3391 commit 426d7d7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

accessibility/scanner/index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,13 @@ if (overRideCommands) {
229229
}
230230

231231
return cy.window().then((currentWindowNew) => {
232+
Cypress.log({
233+
name: command, // Display the passed command name
234+
displayName: `Accessibility: ${command}`, // Change how it looks in the Cypress log
235+
message: url,
236+
});
237+
232238
return originalFn(url, options).then(() => {
233-
Cypress.log({
234-
name: command, // Ensure the correct command name is logged
235-
message: url,
236-
});
237239
return processAccessibilityReport(url, currentWindowNew);
238240
});
239241
});

0 commit comments

Comments
 (0)