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

Fix e2e flaky tests #7084

Merged
merged 7 commits into from
May 16, 2023
Merged

Fix e2e flaky tests #7084

merged 7 commits into from
May 16, 2023

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented May 13, 2023

Changes

While working on #7074, I think I figured out the flaky tests. We were testing component interaction without waiting for it to completely hydrate.

I added a new waitForHydrate utility that watches the astro-island's ssr attribute to be removed to know that the island has been hydrated. This ssr remove behaviour is from here.

This brings around 60-90s faster e2e tests as fewer retries are needed.

Testing

Ran e2e tests a few times locally.

Docs

n/a. internal test fix.

@changeset-bot
Copy link

changeset-bot bot commented May 13, 2023

⚠️ No Changeset found

Latest commit: c01d99b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label May 13, 2023
@bluwy bluwy marked this pull request as draft May 13, 2023 17:46
@bluwy bluwy marked this pull request as ready for review May 15, 2023 14:54
@bluwy bluwy merged commit d7007a1 into main May 16, 2023
@bluwy bluwy deleted the fix-e2e-flaky branch May 16, 2023 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants