Skip to content

Disable accessibility when browserstackAccessibility plugin not loaded#1132

Open
pranay-v29 wants to merge 3 commits into
masterfrom
disable-accessibility-when-plugin-not-loaded
Open

Disable accessibility when browserstackAccessibility plugin not loaded#1132
pranay-v29 wants to merge 3 commits into
masterfrom
disable-accessibility-when-plugin-not-loaded

Conversation

@pranay-v29

@pranay-v29 pranay-v29 commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

When a build requests accessibility (browserstack.json/browser caps) but the browserstackAccessibility plugin is not wired into the cypress config, the CLI now detects this before the build start event, explicitly disables accessibility so the build is not counted as an a11y build, warns the user with the setup doc link, and instruments the end-of-session EDS event (accessibility_plugin_not_loaded) so such builds can be excluded from stability queries.

Detection is code-based: the plugin sets BROWSERSTACK_ACCESSIBILITY_PLUGIN_LOADED when its module is loaded/invoked by the cypress config; requireModule writes a flag file the parent process reads back. Falls back to a raw-source scan only when the config could not be required (e.g. TS before bstack packages are installed).

Detection is also done at import and invocation of plugin.

When a build requests accessibility (browserstack.json/browser caps) but the
browserstackAccessibility plugin is not wired into the cypress config, the CLI
now detects this before the build start event, explicitly disables accessibility
so the build is not counted as an a11y build, warns the user with the setup doc
link, and instruments the end-of-session EDS event (accessibility_plugin_not_loaded)
so such builds can be excluded from stability queries.

Detection is code-based: the plugin sets BROWSERSTACK_ACCESSIBILITY_PLUGIN_LOADED
when its module is loaded/invoked by the cypress config; requireModule writes a
flag file the parent process reads back. Falls back to a raw-source scan only when
the config could not be required (e.g. TS before bstack packages are installed).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@pranay-v29 pranay-v29 requested a review from a team as a code owner June 22, 2026 05:58
};

const isBindingCalled = (content, binding) => {
const callRegex = new RegExp('\\b' + binding.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + '\\s*\\(');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants