Skip to content
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

fix: Handle privileged commands arg mutation #27282

Merged
merged 4 commits into from
Jul 17, 2023

Conversation

chrisbreiding
Copy link
Contributor

Additional details

The argument comparison would fail for privileged commands if any argument was mutated between invocation and running the command. The fix is to send the hashed arguments from when it's originally invoked for comparison in the server.

Steps to test

How has the user experience changed?

PR Tasks

@cypress
Copy link

cypress bot commented Jul 12, 2023

36 flaky tests on run #48883 ↗︎

0 27952 1349 0 Flakiness 36

Details:

Merge branch 'issue-27200-privileged-command-arg-mutation' of github.com:cypress...
Project: cypress Commit: 45929fa3d7
Status: Passed Duration: 22:36 💡
Started: Jul 17, 2023 3:35 PM Ended: Jul 17, 2023 3:57 PM
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox

View Output Video

Test Artifacts
network stubbing > intercepting request > can delay and throttle a StaticResponse Output
Flakiness  commands/waiting.cy.js • 1 flaky test • 5x-driver-firefox

View Output Video

Test Artifacts
... > errors > throws waiting for the 3rd response Output
Flakiness  e2e/origin/commands/assertions.cy.ts • 1 flaky test • 5x-driver-firefox

View Output Video

Test Artifacts
cy.origin assertions > #consoleProps > .should() and .and() Output
Flakiness  cypress/cypress.cy.js • 3 flaky tests • 5x-driver-firefox

View Output Video

Test Artifacts
... > correctly returns currentRetry Output
... > correctly returns currentRetry Output
... > correctly returns currentRetry Output
Flakiness  project-setup.cy.ts • 1 flaky test • launchpad-e2e

View Output Video

Test Artifacts
... > shows the configuration setup page when selecting e2e tests Output Screenshots Video

The first 5 flaky specs are shown, see all 25 specs in Cypress Cloud.

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@chrisbreiding chrisbreiding merged commit ddec92d into develop Jul 17, 2023
74 of 78 checks passed
@chrisbreiding chrisbreiding deleted the issue-27200-privileged-command-arg-mutation branch July 17, 2023 16:19
ryanthemanuel pushed a commit that referenced this pull request Jul 19, 2023
Co-authored-by: Stokes Player <stokes@cypress.io>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Co-authored-by: Jordan <jordan@jpdesigning.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
fix: Fix web worker creation within spec frame (#27313)
fix: Handle privileged commands arg mutation (#27282)
fix(webpack-dev-server): add typeRoots to generated tsconfig for angular (#27117)
fix memory import (#27324)
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jul 20, 2023

Released in 12.17.2.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v12.17.2, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jul 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cy.task() doesn't work as expected with Cypress version 12.16.0
3 participants