Skip to content

SDK-8048: address #1206 review — forceHttp1 on every Cypress 16 a11y build - #1223

Merged
AakashHotchandani merged 1 commit into
APS-22894-cypress-16-exposefrom
SDK-8048-review-fixes
Nov 23, 2026
Merged

AakashHotchandani merged 1 commit into
APS-22894-cypress-16-exposefrom
SDK-8048-review-fixes

Conversation

@AakashHotchandani

Copy link
Copy Markdown
Collaborator

Follow-up to #1222, addressing the review on #1206 (base: APS-22894-cypress-16-expose).

Changes

  • forceHttp1 keyed on Cypress major 16, not the requested version. Rails resolves any 16.x it doesn't list to the newest 16 it offers (CypressFramework#evaluate_users_cypress_version_further). Right now that's 16.2.0, the affected version. So requests for 16.2.1, 16.3.0, 16.0.0, 16.2 and 16.latest-1 were running 16.2.0 without forceHttp1. ACCESSIBILITY_FORCE_HTTP1_CYPRESS_RANGE is replaced by ACCESSIBILITY_FORCE_HTTP1_CYPRESS_MAJOR = 16.
  • Comments give the real reason for the 15 default. DEFAULT_CYPRESS_MAJOR_FOR_ACCESSIBILITY stays at 15. That's this CLI's choice, not a match with Rails (railsApp#184075 defaults expose-capable CLIs to the newest Cypress). The point is to keep unpinned a11y builds off the Cypress 16 forceHttp1 path. The stale caps() comment is fixed too.
  • The accessibility plugin test now restores BROWSERSTACK_LOGS and BROWSERSTACK_ACCESSIBILITY_PLUGIN_LOADED.

Follow-up (not in this PR)

The version that actually runs is only known server-side. Once terminalDeploy#8868's Cypress 16 forceHttp1 rule also covers "accessibility on and resolved version in [16.1.0, 16.2.1)", this CLI rule can go. Until then, installed CLIs keep adding forceHttp1 to 16.x a11y builds even after Rails offers 16.2.1+. Those builds still run, with Cypress's deprecation warning and the HTTP/1.1 proxy.

Tests

  • capabilityHelper.js + plugin tests: 107 passing. forceHttp1 is added for 16, 16.latest, 16.latest-1, 16.2, 16.0.0, 16.1.0, 16.1.1, 16.2.0, 16.2.1 and 16.3.0. It isn't added for 15, no version (pinned to 15), a11y off, latest or 17.
  • Full npm test: 764 passing, 16 failing. The same 16 tests fail on the base branch.

Ticket: SDK-8048 · Release: APS-22894

🤖 Generated with Claude Code

…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>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Default branch
  • Repository: browserstack/browserstack-cypress-cli
  • Branch: master
  • File: .coderabbit.yaml
  • Commit: aedf9e9
  • Layers: Repository YAML (base), Central YAML (inherited), Organization UI (inherited), Workspace UI (inherited); Enforced overrides: Organization
  • Review profile: ASSERTIVE
  • Plan: Enterprise
  • Run ID: 6a153d35-2508-4a10-b909-dc44b0dfba91

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@AakashHotchandani
AakashHotchandani merged commit e64dcc1 into APS-22894-cypress-16-expose Nov 23, 2026
1 check 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.

1 participant