cypress icon indicating copy to clipboard operation
cypress copied to clipboard

fix: preserve run actions when top changes (cy.visit) [CYCLOUD-2106]

Open MuazOthman opened this issue 1 year ago • 1 comments

Additional details

Calling cy.visit() replaces the top, which recreates the Cypress object, leading to losing the actions needed to drive the burn-in logic.

This PR adds logic to store actions on the server-side and retrieve them if available.

Steps to test

How has the user experience changed?

PR Tasks

MuazOthman avatar Dec 27 '23 23:12 MuazOthman

42 failed and 1 flaky tests on run #53479 ↗︎

42 394 14 24 Flakiness 1

Details:

Merge branch 'feature/test-burn-in' into muaz/fix-actions-after-visit
Project: cypress Commit: 7cd90c6777
Status: Failed Duration: 15:27 💡
Started: Jan 12, 2024 4:53 PM Ended: Jan 12, 2024 5:09 PM
Failed  cypress\e2e\runs.cy.ts • 2 failed tests • app-e2e

View Output

Test Artifacts
App: Runs > Runs - No Runs > displays a copy button and copies correct command in Component Testing Test Replay Screenshots
App: Runs > Runs - No Runs > displays a copy button and copies correct command in E2E Test Replay Screenshots
Failed  cypress\e2e\create-from-component.cy.ts • 4 failed tests • app-e2e

View Output

Test Artifacts
... > Shows create from component card for Vue projects Test Replay Screenshots
... > Shows create from component card for Vue projects Test Replay Screenshots
... > Shows create from component card for React projects Test Replay Screenshots
... > Shows create from component card for React projects Test Replay Screenshots
Failed  cypress\e2e\runner\reporter.command_errors.cy.ts • 13 failed tests • app-e2e

View Output

Test Artifacts
errors ui > assertion failures Test Replay Screenshots
errors ui > assertion failures - no preferred IDE Test Replay Screenshots
errors ui > cy.then Test Replay Screenshots
errors ui > cy.should Test Replay Screenshots
errors ui > cy.each Test Replay Screenshots
errors ui > cy.spread Test Replay Screenshots
errors ui > cy.within Test Replay Screenshots
errors ui > cy.wrap Test Replay Screenshots
errors ui > cy.visit Test Replay Screenshots
errors ui > cy.intercept Test Replay Screenshots
The first 10 failed tests are shown, see all 13 tests in Cypress Cloud.
Failed  cypress\e2e\runner\runner.ui.cy.ts • 23 failed tests • app-e2e

View Output

Test Artifacts
src/cypress/runner > tests finish with correct state > simple 1 test Test Replay Screenshots
src/cypress/runner > tests finish with correct state > simple 1 global test Test Replay Screenshots
src/cypress/runner > tests finish with correct state > simple 3 tests Test Replay Screenshots
src/cypress/runner > tests finish with correct state > simple fail Test Replay Screenshots
src/cypress/runner > tests finish with correct state > pass fail pass fail Test Replay Screenshots
src/cypress/runner > tests finish with correct state > fail pass Test Replay Screenshots
src/cypress/runner > tests finish with correct state > no tests Test Replay Screenshots
src/cypress/runner > tests finish with correct state > executes nested suite Test Replay Screenshots
src/cypress/runner > tests finish with correct state > simple fail, catch cy.on(fail) Test Replay Screenshots
src/cypress/runner > tests finish with correct state > pins cy assertion when clicked Test Replay Screenshots
The first 10 failed tests are shown, see all 23 tests in Cypress Cloud.
Failed  cypress\e2e\runner\retries.mochaEvents.cy.ts • 0 failed tests • app-e2e

View Output

Test Artifacts

The first 5 failed specs are shown, see all 30 specs in Cypress Cloud.

Flakiness  cypress\e2e\top-nav.cy.ts • 1 flaky test • app-e2e

View Output

Test Artifacts
... > when there is a project id > cancel button correctly clears error state Test Replay Screenshots

Review all test suite changes for PR #28594 ↗︎

cypress[bot] avatar Dec 28 '23 00:12 cypress[bot]