René's URL Explorer Experiment


Title: [APS-22894] Disable TestHub and Accessibility injection on Cypress 16+ (Cypress.env removed) by PriyankaVats16 · Pull Request #1205 · browserstack/browserstack-cypress-cli · GitHub

Open Graph Title: [APS-22894] Disable TestHub and Accessibility injection on Cypress 16+ (Cypress.env removed) by PriyankaVats16 · Pull Request #1205 · browserstack/browserstack-cypress-cli

X Title: [APS-22894] Disable TestHub and Accessibility injection on Cypress 16+ (Cypress.env removed) by PriyankaVats16 · Pull Request #1205 · browserstack/browserstack-cypress-cli

Description: Summary Cypress 16 removed Cypress.env() from the browser (replaced by async cy.env() and sync Cypress.expose()). The TestHub (Test Observability) and Accessibility support-file hooks this CLI injects still call Cypress.env() at 17 sites, all inside synchronous Cypress.on(...) / Commands.overwrite(...) wrappers (bin/testObservability/cypress/index.js:11,16,23,300,315, bin/accessibility-automation/cypress/index.js:4,270-287,328-329,349-350), so on Cypress 16 they throw inside every command. Until those hooks move to Cypress.expose() (SDK/TestHub-owned, same pattern Percy used in PPLT-6234), this PR gates both features off for Cypress 16+ runs so 16.2.0 can ship with a stated limitation instead of broken sessions. Changes bin/helpers/utils.js — getCypressMajorVersion(bsConfig, buildReportData): major from run_settings.cypress_version (16, 16.latest, 16.2.0), else from default_cypress_version that get_initial_details now returns (railsApp APS-22894-cypress-16-2-0) for suites that send no version. bin/commands/runs.js — after getInitialDetails, if the major is ≥ TESTHUB_A11Y_UNSUPPORTED_FROM_CYPRESS_MAJOR (16) and TestHub or a11y is on: warn, set isTestObservabilitySession / isAccessibilitySession false, bsConfig.testObservability = false, BROWSERSTACK_TEST_OBSERVABILITY=false. That runs before checkAndSetAccessibility, setEventListeners and setAccessibilityEventListeners, so nothing is injected and the suite is zipped clean. bin/helpers/constants.js — the threshold and the user message. Unit tests for the helper (7 cases). Non-16 runs are untouched (the condition is false). Removing the gate later = deleting the block in runs.js once the SDK fix is in. JIRA APS-22894 — Cypress 16.2.0 release on Automate desktop (Mac + Windows), BAU Related PRs browserstack/railsApp#181600 (adds default_cypress_version to get_initial_details) SDK ticket for the Cypress.expose migration: to be raised Testing npx mocha test/unit/bin/commands/runs.js test/unit/bin/helpers/utils.js test/unit/bin/testObservability/helper/helper.js: 401 passing, 12 failing. The same 12 fail identically on untouched origin/master with fresh deps (send error report ×7, local args, nodeVersion, video config ×3), so they are pre-existing. Staging run with testObservability: true + cypress_version: 16.2.0 pending the 16.2.0 binaries (Stage 4). 🤖 Generated with Claude Code

Open Graph Description: Summary Cypress 16 removed Cypress.env() from the browser (replaced by async cy.env() and sync Cypress.expose()). The TestHub (Test Observability) and Accessibility support-file hooks this CLI inje...

X Description: Summary Cypress 16 removed Cypress.env() from the browser (replaced by async cy.env() and sync Cypress.expose()). The TestHub (Test Observability) and Accessibility support-file hooks this CLI inje...

Opengraph URL: https://github.com/browserstack/browserstack-cypress-cli/pull/1205

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:84c22892-53fe-18f7-0ffa-64c3eb1ab161
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id84C0:124D48:2D11A4:3E13CC:6B044C7C
html-safe-nonce917765c1423e7e5cd33c3ab3cc9014a110294ef3650c78840467dcb0b0e3b61b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEMwOjEyNEQ0ODoyRDExQTQ6M0UxM0NDOjZCMDQ0QzdDIiwidmlzaXRvcl9pZCI6IjU1MTE4NDMwMzQzOTgyMTUyOTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca5fa4dcf44c5b77aa5eca3b8fdcad5b9aa892316030ca2545831c88d8c02b86a
hovercard-subject-tagpull_request:4980910272
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files
twitter:imagehttps://avatars.githubusercontent.com/u/87927606?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/87927606?s=400&v=4
og:image:altSummary Cypress 16 removed Cypress.env() from the browser (replaced by async cy.env() and sync Cypress.expose()). The TestHub (Test Observability) and Accessibility support-file hooks this CLI inje...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/browserstack/browserstack-cypress-cli git https://github.com/browserstack/browserstack-cypress-cli.git
octolytics-dimension-user_id1119453
octolytics-dimension-user_loginbrowserstack
octolytics-dimension-repository_id242935045
octolytics-dimension-repository_nwobrowserstack/browserstack-cypress-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id242935045
octolytics-dimension-repository_network_root_nwobrowserstack/browserstack-cypress-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release059f24c781e3a0d7df3f27a97da0e93fab06ae39
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fpull%2F1205%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fpull%2F1205%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=browserstack%2Fbrowserstack-cypress-cli
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/pull/1205/files
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/pull/1205/files
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/pull/1205/files
browserstackhttps://github.com/browserstack
browserstack-cypress-clihttps://github.com/browserstack/browserstack-cypress-cli
Codehttps://github.com/browserstack/browserstack-cypress-cli
Issues28 (28)https://github.com/browserstack/browserstack-cypress-cli/issues
Pull requests47 (47)https://github.com/browserstack/browserstack-cypress-cli/pulls
Actionshttps://github.com/browserstack/browserstack-cypress-cli/actions
Projectshttps://github.com/browserstack/browserstack-cypress-cli/projects
Security and quality1 (1)https://github.com/browserstack/browserstack-cypress-cli/security
Insightshttps://github.com/browserstack/browserstack-cypress-cli/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fissues%2Fnew%2Fchoose
PriyankaVats16https://github.com/PriyankaVats16
masterhttps://github.com/browserstack/browserstack-cypress-cli/tree/master
APS-22894-cypress-16-2-0https://github.com/browserstack/browserstack-cypress-cli/tree/APS-22894-cypress-16-2-0
Conversation 2 https://github.com/browserstack/browserstack-cypress-cli/pull/1205
Commits 1 https://github.com/browserstack/browserstack-cypress-cli/pull/1205/commits
Checks 5 https://github.com/browserstack/browserstack-cypress-cli/pull/1205/checks
Files changed https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1205/files
[APS-22894] Disable TestHub and Accessibility injection on Cypress 16+ (Cypress.env removed) https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#top
Show all changes 1 commit https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files
1f457f2 APS-22894 Cypress 16: disable TestHub and Accessibility injection on … PriyankaVats16 Oct 23, 2026 https://github.com/browserstack/browserstack-cypress-cli/pull/1205/commits/1f457f20bbf3c077665714574153a9b912e2720e
Clear filters https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1205/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1205/files
runs.js https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-a95401c471c5cba911459450275cf27ad785e2a5467baa31759a76a7e9d0b7e6
constants.js https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-b9662bda6e70593ec8278cc2afff2e7738dd24b93c9267e4e58bfdc6fbaf4d93
utils.js https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-767dbfdc97b44842992762e966fcc633ebbf9d90e8af9942bdf48aca05d55a69
utils.js https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-41ff8fc1707dbf392b549c56f015ff286d23c8ae77019b78821c0836de339623
https://github.com/browserstack/browserstack-cypress-cli/blob/master/CODEOWNERS#L15
bin/commands/runs.jshttps://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-a95401c471c5cba911459450275cf27ad785e2a5467baa31759a76a7e9d0b7e6
View file https://github.com/browserstack/browserstack-cypress-cli/blob/1f457f20bbf3c077665714574153a9b912e2720e/bin/commands/runs.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-cypress-cli/pull/1205/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-a95401c471c5cba911459450275cf27ad785e2a5467baa31759a76a7e9d0b7e6
https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-a95401c471c5cba911459450275cf27ad785e2a5467baa31759a76a7e9d0b7e6
https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-a95401c471c5cba911459450275cf27ad785e2a5467baa31759a76a7e9d0b7e6
bin/helpers/constants.jshttps://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-b9662bda6e70593ec8278cc2afff2e7738dd24b93c9267e4e58bfdc6fbaf4d93
View file https://github.com/browserstack/browserstack-cypress-cli/blob/1f457f20bbf3c077665714574153a9b912e2720e/bin/helpers/constants.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-cypress-cli/pull/1205/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-b9662bda6e70593ec8278cc2afff2e7738dd24b93c9267e4e58bfdc6fbaf4d93
https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-b9662bda6e70593ec8278cc2afff2e7738dd24b93c9267e4e58bfdc6fbaf4d93
https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-b9662bda6e70593ec8278cc2afff2e7738dd24b93c9267e4e58bfdc6fbaf4d93
https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-b9662bda6e70593ec8278cc2afff2e7738dd24b93c9267e4e58bfdc6fbaf4d93
https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-b9662bda6e70593ec8278cc2afff2e7738dd24b93c9267e4e58bfdc6fbaf4d93
https://github.com/browserstack/browserstack-cypress-cli/blob/master/CODEOWNERS#L18
bin/helpers/utils.jshttps://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-767dbfdc97b44842992762e966fcc633ebbf9d90e8af9942bdf48aca05d55a69
View file https://github.com/browserstack/browserstack-cypress-cli/blob/1f457f20bbf3c077665714574153a9b912e2720e/bin/helpers/utils.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-cypress-cli/pull/1205/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-767dbfdc97b44842992762e966fcc633ebbf9d90e8af9942bdf48aca05d55a69
https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-767dbfdc97b44842992762e966fcc633ebbf9d90e8af9942bdf48aca05d55a69
test/unit/bin/helpers/utils.jshttps://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-41ff8fc1707dbf392b549c56f015ff286d23c8ae77019b78821c0836de339623
View file https://github.com/browserstack/browserstack-cypress-cli/blob/1f457f20bbf3c077665714574153a9b912e2720e/test/unit/bin/helpers/utils.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/browserstack/browserstack-cypress-cli/pull/1205/{{ revealButtonHref }}
https://github.com/browserstack/browserstack-cypress-cli/pull/1205/files#diff-41ff8fc1707dbf392b549c56f015ff286d23c8ae77019b78821c0836de339623
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1205/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.