Skip to content

Conversation

@mjhenkes
Copy link
Contributor

@mjhenkes mjhenkes commented Mar 17, 2022

  • Closes

User facing changelog

n/a

Additional details

On further inspection, we should not get into a state where the AUT loads before the spec bridge is active due to our delaying logic. Given this we can remove some code trying to sync a load even that happened if the page loaded before the specbridge was active.

How has the user experience changed?

PR Tasks

  • Have tests been added/updated?
  • Has the original issue (or this PR, if no issue exists) been tagged with a release in ZenHub? (user-facing changes only)
  • Has a PR for user-facing changes been opened in cypress-documentation?
  • Have API changes been updated in the type definitions?
  • Have new configuration options been added to the cypress.schema.json?

@mjhenkes mjhenkes added the topic: cy.origin Problems or enhancements related to cy.origin command label Mar 17, 2022
@mjhenkes mjhenkes self-assigned this Mar 17, 2022
@mjhenkes mjhenkes requested a review from a team as a code owner March 17, 2022 01:21
@mjhenkes mjhenkes requested review from jennifer-shehane and removed request for a team March 17, 2022 01:21
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Mar 17, 2022

Thanks for taking the time to open a PR!

@mjhenkes mjhenkes requested review from a team, AtofStryker, chrisbreiding and mschile and removed request for a team and jennifer-shehane March 17, 2022 01:21
@cypress
Copy link

cypress bot commented Mar 17, 2022



Test summary

20487 0 298 4Flakiness 3


Run details

Project cypress
Status Passed
Commit f6a1da8
Started Mar 17, 2022 3:50 PM
Ended Mar 17, 2022 4:05 PM
Duration 14:49 💡
OS Linux Debian - 10.10
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

commands/actions/click_spec.js Flakiness
1 src/cy/commands/actions/click > #rightclick > rightclick remove el on pointerdown
e2e/multi-domain/navigation_spec.ts Flakiness
1 delayed navigation > localhost -> foobar, delay in
reporter.hooks.spec.js Flakiness
1 hooks > can rerun without timeout error leaking into next run (due to run restart)

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@mjhenkes mjhenkes marked this pull request as draft March 17, 2022 14:50
@mjhenkes mjhenkes changed the title chore: [Multi-domain] Fix Flake when subdomain loads faster than the switchToDomain command. chore: [Multi-domain] Clean up stability code. Mar 17, 2022
@mjhenkes mjhenkes marked this pull request as ready for review March 17, 2022 15:46
@mjhenkes mjhenkes merged commit ebb054e into feature-multidomain Mar 18, 2022
@mjhenkes mjhenkes deleted the md-resolve-flake-in-tests branch March 18, 2022 17:37
mschile pushed a commit that referenced this pull request Mar 22, 2022
* chore: [Multi-domain] Fix Flake when subdomain loads faster than toSpecBridge Command called.

* Add Test

* simplify test

* Loading a cross domain page won't happen until the spec bridge is active (or a timeout will happen)

* Update packages/driver/src/multi-domain/domain_fn.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: cy.origin Problems or enhancements related to cy.origin command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants