Skip to content

Commit 38c8196

Browse files
Merge pull request #372 from abhishek-lambda/AT-281
update overide commandS
2 parents df77bb0 + 3e5ce61 commit 38c8196

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

accessibility/scanner/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ async function processAccessibilityReport(url) {
101101

102102
console.log('log', "SET SCAN: Payload to send: for url: ", payloadToSend,url);
103103
try {
104-
console.log("Current Window Object:", currentWindow);
105104
let setResult = await setScanConfig(currentWindow, payloadToSend);
106105
console.log('SET SCAN: response:', setResult);
107106
} catch (err) {
@@ -218,7 +217,8 @@ function oldprocessAccessibilityReport(win){
218217
});
219218
}
220219

221-
const overRideCommands = Cypress.env("ACCESSIBILITY_OVERIDE_COMMANDS") || false;
220+
const overRideCommands = JSON.parse(Cypress.env("ACCESSIBILITY_OVERIDE_COMMANDS") || "false");
221+
222222
if (overRideCommands) {
223223
commandsToOverride.forEach((command) => {
224224
Cypress.Commands.overwrite(command, (originalFn, url, options) => {

0 commit comments

Comments
 (0)