Commit ef21f79
OCPBUGS-83532: Fix race condition in CRD Cypress test
The customresourcedefinition.cy.ts test was failing intermittently
due to a race condition. After clicking "View instances" via the
kebab menu, the test immediately attempted to click the "Create YAML"
button without waiting for navigation to complete.
This fix adds two synchronization points:
1. URL validation to ensure navigation completed
2. Page load check to ensure the Create button is visible
This eliminates the race condition and stabilizes the test.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 6a8db8b commit ef21f79
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
0 commit comments