Skip to content

Commit ac58de3

Browse files
Merge pull request #383 from abhishek-lambda/AT-281
try renaming window command
2 parents 9d2e630 + 6b1c282 commit ac58de3

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

accessibility/scanner/index.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,12 @@ if (overRideCommands) {
227227
console.log('log', "Accessibility not enabled.");
228228
return originalFn(url, options);
229229
}
230-
230+
Cypress.log({
231+
name: command, // Display the passed command name
232+
displayName: `Accessibility: ${command}`, // Change how it looks in the Cypress log
233+
message: url,
234+
});
231235
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-
238236
return originalFn(url, options).then(() => {
239237
return processAccessibilityReport(url, currentWindowNew);
240238
});

0 commit comments

Comments
 (0)