Skip to content

tests: resolve isolated-env race condition#3398

Merged
straker merged 1 commit intodevelopfrom
fix-firefox-test
Mar 1, 2022
Merged

tests: resolve isolated-env race condition#3398
straker merged 1 commit intodevelopfrom
fix-firefox-test

Conversation

@straker
Copy link
Copy Markdown
Contributor

@straker straker commented Feb 25, 2022

Turns out there was a race condition in the isolated-env tests between when the iframe load event was triggered and when the script contents to fetch axe and inject it into the page via eval would complete. Tests would fail if the script couldn't execute faster than the load event.

Fixed that by properly waiting for the post message the script sends in addition to waiting for the nested load function.

Closes issue: #3367

@straker straker requested a review from a team as a code owner February 25, 2022 18:12
@WilcoFiers WilcoFiers changed the title tests: fix flakey firefox test tests: resolve isolated-env race condition Mar 1, 2022
Copy link
Copy Markdown
Contributor

@WilcoFiers WilcoFiers left a comment

Choose a reason for hiding this comment

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

LGTM; I did change your PR title though.

@straker straker merged commit 62daaf1 into develop Mar 1, 2022
@straker straker deleted the fix-firefox-test branch March 1, 2022 15:07
straker added a commit that referenced this pull request May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants