Repository navigation
[APS-22894] Cypress 16: TestHub and Accessibility support files read plugin values via Cypress.expose() (Cypress.env removed) #1206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0c1bfd8
APS-22894 Cypress 16: read plugin values via Cypress.expose() with a …
PriyankaVats16 6268462
APS-22894 Cypress 16: forward customer ACCESSIBILITY_SCAN_TIMEOUT / C…
anish353 585ae8d
APS-22894 Cypress 16: send run_settings.cypressExposeSupport
PriyankaVats16 a40ac2c
feat(helpers): keep accessibility builds on Cypress 15
PriyankaVats16 faff373
SDK-8048: run accessibility on Cypress 16 with forceHttp1
AakashHotchandani 0cafced
SDK-8048: add forceHttp1 only for the affected Cypress versions (16.1…
AakashHotchandani ee19496
Merge pull request #1222 from browserstack/SDK-8048-a11y-cypress16-fo…
AakashHotchandani 7ca0e7b
SDK-8048: address #1206 review (forceHttp1 on every Cypress 16 a11y b…
AakashHotchandani e64dcc1
Merge pull request #1223 from browserstack/SDK-8048-review-fixes
AakashHotchandani c535023
Merge branch 'master' into APS-22894-cypress-16-expose
hamza-browserstack File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional, non-blocking, for the SDK owners to sign off: on Cypress 16 this puts the TestHub JWT into
expose, i.e. into the browser, which Cypress 16 stopped doing forenv. The support file needs it there for the extension payload (bin/accessibility-automation/cypress/index.js:428). On ≤15 it's already in the browser viaenv, so this isn't new exposure. I'm raising it so it's a deliberate decision rather than a side effect. If we'd rather keep it out, thecy.taskroute from the description should work, since that read already happens inside anafterEachcommand chain.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping it as is, on purpose. The support file has to read the JWT in the browser to build the extension payload (
cypress/index.js:428). On Cypress 15 and earlier it is already there throughenv, soexposeon 16 adds no new exposure. It only keeps today's behaviour. The JWT is a short-lived TestHub build token, and the spec code that can read it is the customer's own. Moving it tocy.taskwould work, but it adds a Node round trip to every scan'safterEach, and that path is already timing-sensitive (this whole issue is scan timeouts). I'd rather do that as a separate change if the SDK owners want it. @PriyankaVats16, can you confirm?