Skip to content

ci: fix Sauce Labs E2E browser tests with Sauce Connect 5 and legacy JWP capabilities - #33724

Merged
alan-agius4 merged 1 commit into
angular:mainfrom
alan-agius4:fix-saucelabs-e2e
Aug 1, 2026
Merged

ci: fix Sauce Labs E2E browser tests with Sauce Connect 5 and legacy JWP capabilities#33724
alan-agius4 merged 1 commit into
angular:mainfrom
alan-agius4:fix-saucelabs-e2e

Conversation

@alan-agius4

Copy link
Copy Markdown
Collaborator

This PR resolves 4 browser test failures in //tests:e2e.saucelabs (tests/misc/browsers.ts) caused by the Sauce Connect 5 upgrade and recent capability changes:

  1. Sauce Connect 5 Localhost Proxying (--proxy-localhost deny default)
    • Passes --proxy-localhost allow to saucelabs/sauce-connect-action@v3 in .github/workflows/ci.yml so remote Sauce Labs browser VMs can route traffic to http://localhost:2000/ running on the CI runner.
  2. Protractor 7 / selenium-webdriver@3.6.0 Protocol Mismatch
    • Preserves legacy JSON Wire Protocol (JWP) capability keys (version, platform) alongside W3C keys (browserVersion, platformName) in tests/e2e/assets/protractor-saucelabs.conf.js, fixing Unable to find a matching set of capabilities on Firefox and Unknown platform requested: 'macos 13' on Safari.

…JWP capabilities

- Pass `--proxy-localhost allow` to Sauce Connect 5 (`saucelabs/sauce-connect-action@v3`) in CI workflow to permit remote Sauce Labs browser VMs to access `http://localhost:2000/`.

- Preserve legacy JWP capability keys (`version`, `platform`) alongside W3C capability keys (`browserVersion`, `platformName`) in `protractor-saucelabs.conf.js` for compatibility with Protractor 7 (`selenium-webdriver@3.6.0`).
@angular-robot angular-robot Bot added the area: build & ci Related the build and CI infrastructure of the project label Aug 1, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Protractor Saucelabs configuration to retain original capability properties, supporting legacy protocols. The review feedback correctly identifies that legacy JSON Wire Protocol (JWP) sessions require the tunnelIdentifier to be specified at the root level of the capabilities, as they do not recognize the W3C sauce:options block.

Comment thread tests/e2e/assets/protractor-saucelabs.conf.js
@alan-agius4 alan-agius4 added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker labels Aug 1, 2026
@alan-agius4
alan-agius4 merged commit 5f1ef6e into angular:main Aug 1, 2026
41 of 42 checks passed
@alan-agius4
alan-agius4 deleted the fix-saucelabs-e2e branch August 1, 2026 07:16
@alan-agius4

Copy link
Copy Markdown
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants