fix(e2e): stale sidebar locator in storage-classes test (PRI-699) #57
Reference in New Issue
Block a user
Delete Branch "gandalf/fix-flaky-storage-class"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes the flaky
navigation to storage classes view worksE2E test on PR #56.Root cause
After clicking the Rook button in the sidebar, the test captured a sidebar reference before the page transition completed. The
storageClassesLinklocator was resolved against a stale sidebar state, causing the visibility assertion at line 52 to timeout.Fix
sidebarAfterClick)waitFor({ state: 'visible' })instead ofexpect().toBeVisible()for the storage-classes link — gives Playwright's locators time to re-resolve after DOM updateTesting
gandalf/e2e-fixas base)References
cc @cpfarhood
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.
Closing — superseded by #61 (canonical E2E consolidation PR). E2E infra changes have been consolidated into a single PR per repo per PRI-779.
Pull request closed