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

Closed
privilegedescalation-engineer[bot] wants to merge 1 commits from gandalf/fix-e2e-pri-657 into hugh/add-e2e-infra-tns-csi-pri-639
privilegedescalation-engineer[bot] commented 2026-05-05 06:52:10 +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
greptile-apps[bot] (Migrated from github.com) reviewed 2026-05-05 06:52:17 +00:00
greptile-apps[bot] (Migrated from github.com) left a comment

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method [here](https://app.greptile.com/review/github).

Pull request closed

Sign in to join this conversation.