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(website tests): replace waitUntil: 'networkidle' with 'load' #1783

Merged
merged 2 commits into from
May 6, 2024

Conversation

corneliusroemer
Copy link
Contributor

@corneliusroemer corneliusroemer commented May 6, 2024

resolves #1782

Summary

I don't know much about playwright, but it seems that load is the most conservative way to wait and networkidle is discouraged.

Test execution appears to become slightly slower - but that might be the cost of deflaking and should be worth it. If anyone wants to improve tests in other way, go ahead, but replacing discouraged features is a first step

@corneliusroemer corneliusroemer marked this pull request as ready for review May 6, 2024 21:22
@chaoran-chen
Copy link
Member

@corneliusroemer, as load is the default, we can leave it out.

@fengelniederhammer, just would like to check in with you: do you see any reason why we should use networkidle?

@corneliusroemer
Copy link
Contributor Author

It seems that switching to load really fixes things - when I replace it back with current networkidle I get errors again, e.g. here: https://github.com/loculus-project/loculus/actions/runs/8976554978/job/24653636458#step:22:31

@corneliusroemer corneliusroemer merged commit 6dbc49b into main May 6, 2024
13 checks passed
@corneliusroemer corneliusroemer deleted the replace-networkidle branch May 6, 2024 22:57
theosanderson pushed a commit that referenced this pull request May 7, 2024
…1783)

* chore(website/tests): replace waitUntil: 'networkidle' with 'load' (default)
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.

Replace "discouraged" waitUntil setting of "networkIdle" in E2E
2 participants