Skip to content

Commit b12a7c3

Browse files
committed
minor change again
1 parent 1e6b4b3 commit b12a7c3

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

bin/accessibility-automation/cypress/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
const fs = require('fs');
22
const path = require('path');
3-
43
/* Event listeners + custom commands for Cypress */
54

65
const browserStackLog = (message) => {
7-
if (!Cypress.env('BROWSERSTACK_LOGS')) return;
6+
// if (!Cypress.env('BROWSERSTACK_LOGS')) return;
87
cy.task('browserstack_log', message);
98
}
109

@@ -46,7 +45,6 @@ const performModifiedScan = (originalFn, Subject, stateType, ...args) => {
4645
runCustomizedCommand();
4746
}
4847

49-
5048
const performScan = (win, payloadToSend) =>
5149
new Promise(async (resolve, reject) => {
5250
const isHttpOrHttps = /^(http|https):$/.test(win.location.protocol);
@@ -320,7 +318,6 @@ commandToOverwrite.forEach((command) => {
320318
});
321319
});
322320

323-
324321
afterEach(() => {
325322

326323
try {
@@ -333,7 +330,6 @@ afterEach(() => {
333330

334331
const attributes = Cypress.mocha.getRunner().suite.ctx.currentTest;
335332
cy.window().then(async (win) => {
336-
337333
let shouldScanTestForAccessibility = shouldScanForAccessibility(attributes);
338334
if (!shouldScanTestForAccessibility) return cy.wrap({});
339335

bin/accessibility-automation/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const supportFileContentMap = {}
1313
const HttpsProxyAgent = require('https-proxy-agent');
1414

1515
const browserStackLog = (message) => {
16-
if (!Cypress.env('BROWSERSTACK_LOGS')) return;
16+
// if (!Cypress.env('BROWSERSTACK_LOGS')) return;
1717
cy.task('browserstack_log', message);
1818
}
1919

0 commit comments

Comments
 (0)