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

chore: modify highlight selector to include frameId #27458

Merged

Conversation

dkasper-was-taken
Copy link
Contributor

Update snapshot API to return elementsToHighlight, an array of objects containing the a selector and frameId.

Additional details

Test replay needs the ability to handle actions/highlights within nested iframes. Currently we are only capturing the selector which is only relative to the AUT frame.

Steps to test

  • set protocolEnabled: true and numTestsKeptInMemory: 0 either within cypress config or on a individual test run
  • in test execute action within iframe

How has the user experience changed?

PR Tasks

@dkasper-was-taken dkasper-was-taken marked this pull request as ready for review August 3, 2023 20:45
@cypress
Copy link

cypress bot commented Aug 3, 2023

25 flaky tests on run #49440 ↗︎

0 27968 1349 0 Flakiness 25

Details:

update config for test
Project: cypress Commit: 3c0f021710
Status: Passed Duration: 19:51 💡
Started: Aug 4, 2023 10:04 PM Ended: Aug 4, 2023 10:23 PM
Flakiness  project-setup.cy.ts • 1 flaky test • launchpad-e2e

View Output Video

Test Artifacts
... > skips the setup steps when choosing component tests to run Test Replay Output Screenshots
Flakiness  e2e/origin/commands/traversal.cy.ts • 1 flaky test • 5x-driver-electron

View Output Video

Test Artifacts
cy.origin traversal > .children() Test Replay Output
Flakiness  e2e/origin/dependencies.cy.jsx • 1 flaky test • 5x-driver-electron

View Output Video

Test Artifacts
cy.origin dependencies - jsx > works with a jsx file Test Replay Output
Flakiness  cypress/cypress.cy.js • 3 flaky tests • 5x-driver-electron

View Output Video

Test Artifacts
... > correctly returns currentRetry Test Replay Output
... > correctly returns currentRetry Test Replay Output
... > correctly returns currentRetry Test Replay Output
Flakiness  create-from-component.cy.ts • 1 flaky test • app-e2e

View Output Video

Test Artifacts
... > runs generated spec Test Replay Output Screenshots

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

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

Copy link
Contributor

@AtofStryker AtofStryker left a comment

Choose a reason for hiding this comment

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

Can we write an automated test for this? I know testing snapshots has been historically somewhat flaky.

@AtofStryker AtofStryker self-requested a review August 8, 2023 16:56
@AtofStryker
Copy link
Contributor

I had the src file open only 🤦🏻 . everything looks good

@dkasper-was-taken dkasper-was-taken merged commit 0d17899 into release/13.0.0 Aug 8, 2023
78 of 80 checks passed
@dkasper-was-taken dkasper-was-taken deleted the dkasper/protocol/highlight-frame-selector branch August 8, 2023 18:38
@cypress cypress bot mentioned this pull request Aug 8, 2023
3 tasks
mschile pushed a commit that referenced this pull request Aug 10, 2023
* initial logic for unique frame selector

* messy in progress

* quick test cleanup, need to figure out stub for meta

* update name

* stub test metadata

* revise key

* clean up

* debugging change

* test for error

* test jquery issue

* type

* revert

* update config for test
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Aug 29, 2023

Released in 13.0.0.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Aug 29, 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.

None yet

3 participants