Skip to content

Commit f1edd41

Browse files
committed
minor changes
1 parent d90ac44 commit f1edd41

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

bin/accessibility-automation/cypress/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
/* Event listeners + custom commands for Cypress */
32

43
const browserStackLog = (message) => {
54
if (!Cypress.env('BROWSERSTACK_LOGS')) return;
6-
cy.task('browserstack_log', message);
7-
}
5+
cy.task('browserstack_log', message);
6+
}
87

98
const commandsToWrap = ['visit', 'click', 'type', 'request', 'dblclick', 'rightclick', 'clear', 'check', 'uncheck', 'select', 'trigger', 'selectFile', 'scrollIntoView', 'scroll', 'scrollTo', 'blur', 'focus', 'go', 'reload', 'submit', 'viewport', 'origin'];
109
// scroll is not a default function in cypress.
@@ -318,7 +317,6 @@ commandToOverwrite.forEach((command) => {
318317
});
319318

320319
afterEach(() => {
321-
322320
const attributes = Cypress.mocha.getRunner().suite.ctx.currentTest;
323321
cy.window().then(async (win) => {
324322
let shouldScanTestForAccessibility = shouldScanForAccessibility(attributes);

bin/accessibility-automation/plugin/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const { decodeJWTToken } = require("../../helpers/utils");
33
const utils = require('../../helpers/utils');
44

55
const browserstackAccessibility = (on, config) => {
6-
76
let browser_validation = true;
87
if (process.env.BROWSERSTACK_ACCESSIBILITY_DEBUG === 'true') {
98
config.env.BROWSERSTACK_LOGS = 'true';

0 commit comments

Comments
 (0)