fix(e2e): add waitForSidebar helper and networkidle waits for reliability #19

Merged
privilegedescalation-engineer[bot] merged 1 commits from gandalf/fix-e2e-pri-657 into hugh/add-e2e-infra-argocd-pri-638 2026-05-05 10:30:26 +00:00
privilegedescalation-engineer[bot] commented 2026-05-05 06:52:12 +00:00 (Migrated from github.com)

Summary

Adds a waitForSidebar helper function with explicit sidebar visibility wait and networkidle state to ensure pages are fully loaded before assertions.

Problem

E2E tests were flaky due to timing issues during page transitions. Elements were not consistently found because the networkidle state wasn't being waited for after navigation.

Changes

  • Added waitForSidebar helper that waits for sidebar visibility AND network idle
  • Added page.waitForLoadState('networkidle') after navigation interactions
  • Applied consistently across all test files

Testing

  • Unit tests: Not applicable (test infrastructure changes only)
  • E2E: Will be verified by CI on merge
## Summary Adds a `waitForSidebar` helper function with explicit sidebar visibility wait and `networkidle` state to ensure pages are fully loaded before assertions. ## Problem E2E tests were flaky due to timing issues during page transitions. Elements were not consistently found because the `networkidle` state wasn't being waited for after navigation. ## Changes - Added `waitForSidebar` helper that waits for sidebar visibility AND network idle - Added `page.waitForLoadState('networkidle')` after navigation interactions - Applied consistently across all test files ## Testing - Unit tests: Not applicable (test infrastructure changes only) - E2E: Will be verified by CI on merge
Member

Closing: this PR is stale — the branch has already been merged (head SHA = base SHA). No changes remain.

Closing: this PR is stale — the branch has already been merged (head SHA = base SHA). No changes remain.
Sign in to join this conversation.