Skip to content

Merge APS-22894-cypress-16-expose - #1227

Merged
bsautomation merged 9 commits into
pre_prodfrom
APS-22894-cypress-16-expose
Nov 24, 2026
Merged

bsautomation merged 9 commits into
pre_prodfrom
APS-22894-cypress-16-expose

Conversation

@bsautomation

@bsautomation bsautomation commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Merge into pre_prod :by automationbs

PriyankaVats16 and others added 9 commits October 23, 2026 15:49
…Cypress.env() fallback in the TestHub and Accessibility support files

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…IRCUIT_LIMIT to config.expose

Customers set these in their Cypress env config. Cypress 16 no longer passes
config.env to the browser, so the support file fell back to the defaults
(25000 ms / 3). Copy them into config.expose when set, without overriding a
value the customer already exposed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tells Rails this CLI's TestHub and Accessibility support files read
Cypress.expose(), so it may default the build to Cypress 16. Rails keeps
CLIs without the flag on Cypress 15 and asks them to upgrade before
running 16, where Cypress.env() throws.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Accessibility does not support Cypress 16 yet. With accessibility on, a build that sends no
cypress_version asks for 15, and one that asks for 16 or later is stopped before upload with
ACCESSIBILITY_CYPRESS_VERSION_UNSUPPORTED. Raising MAX_CYPRESS_MAJOR_FOR_ACCESSIBILITY lifts the
cap without a Rails change.

Refs APS-22894

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cypress 16.2.0's default network mode never starts the a11y extension's service worker
(cypress-io/cypress#35127, fixed in 16.2.1), so every scan waits out the 25s timeout and the
build still passes. forceHttp1 avoids it: on the same preprod Ventura pool, the scan step took
25.6s without it and 4.2s with it (15.21.1: 5.0s).

- Accessibility builds on Cypress 16 get forceHttp1=true added to run_settings.config. Other
  config keys are kept, and a forceHttp1 the user already set (true or false) is left alone.
- MAX_CYPRESS_MAJOR_FOR_ACCESSIBILITY 15 -> 16, so 16 is allowed and 17+ is still refused.
- Builds with no cypress_version still ask for 15 (DEFAULT_CYPRESS_MAJOR_FOR_ACCESSIBILITY),
  matching Rails' default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
….0 to 16.2.0)

The extension service-worker bug is a regression from cypress-io/cypress#34762 (16.1.0),
reported as #35127 and fixed by #34958 in 16.2.1. Builds asking for 16.2.1+ or 16.0.x no
longer get forceHttp1. "16" and "16.latest" still do while 16.2.0 is the only Cypress 16
Rails offers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rcehttp1

SDK-8048: run accessibility on Cypress 16.1.0-16.2.0 with forceHttp1 (stacked on #1206)
…uild, comments, test env restore)

- forceHttp1 keyed on major 16: Rails runs 16.2.0 for any 16.x it doesn't list
  (CypressFramework#evaluate_users_cypress_version_further), so 16.2.1/16.3.0/16.0.0/16.2
  requests also run the affected version.
- DEFAULT_CYPRESS_MAJOR_FOR_ACCESSIBILITY / caps() comments give the real reason for 15.
- accessibility plugin test restores BROWSERSTACK_LOGS and BROWSERSTACK_ACCESSIBILITY_PLUGIN_LOADED.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SDK-8048: address #1206 review — forceHttp1 on every Cypress 16 a11y build
@bsautomation
bsautomation requested a review from a team as a code owner November 24, 2026 11:33
@bsautomation
bsautomation requested review from pranay-v29 and shivam5643 and removed request for a team November 24, 2026 11:33
@bsautomation
bsautomation merged commit 8b7a721 into pre_prod Nov 24, 2026
6 checks passed
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.

4 participants