Skip to content

Fix flaky Playwright test#222

Merged
eumalin merged 1 commit into
mainfrom
fix-flaky-test
Jun 11, 2026
Merged

Fix flaky Playwright test#222
eumalin merged 1 commit into
mainfrom
fix-flaky-test

Conversation

@eumalin

@eumalin eumalin commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

The sidebar is visible test was flaking in CI tests. The Svelte app sometimes isn't mounted before the 5s assertion timeout.

@eumalin eumalin marked this pull request as ready for review June 9, 2026 15:17
@eumalin eumalin requested a review from carylwyatt June 9, 2026 15:17

@carylwyatt carylwyatt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I went to read about waitForLoadState, and the networkidle state is discouraged. I think we could possibly make a web assertion in here instead (maybe move the check for the main element inside this beforeEach?) but the waitForLoadState should be fine since these "setup" tests are so small.

@eumalin

eumalin commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

I went to read about waitForLoadState, and the networkidle state is discouraged. I think we could possibly make a web assertion in here instead (maybe move the check for the main element inside this beforeEach?) but the waitForLoadState should be fine since these "setup" tests are so small.

Thank you for pointing this out! I opted to go with a web assertion instead.

@eumalin eumalin merged commit ec7435d into main Jun 11, 2026
3 checks passed
@eumalin eumalin deleted the fix-flaky-test branch June 11, 2026 12:39
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