Playwright - Fixing flaky test.#26807
Playwright - Fixing flaky test.#26807kshinde3110 wants to merge 22 commits intoopen-metadata:mainfrom
Conversation
🔴 Playwright Results — 44 failure(s), 18 flaky✅ 2756 passed · ❌ 44 failed · 🟡 18 flaky · ⏭️ 340 skipped
Genuine Failures (failed on all attempts)❌
|
| @@ -369,6 +359,7 @@ test.describe( | |||
| ); | |||
| expect(postRes.status()).toBe(403); | |||
|
|
|||
| await fetchIncidentId(apiContext); | |||
There was a problem hiding this comment.
why we need too fetch this here? also we are returning the incidentID but not storing and using it
| await expect(async () => { | ||
| const certificationResponse = page.waitForResponse( | ||
| '/api/v1/tags?parent=Certification*' | ||
| ); | ||
| await page.keyboard.press('Enter', { delay: 100 }); | ||
| await certificationResponse; | ||
|
|
||
| await expect(certRadioBtn).toBeVisible({ timeout: 5000 }); | ||
| }).toPass({ timeout: 30000, intervals: [2000, 3000, 5000] }); | ||
|
|
There was a problem hiding this comment.
can you provide some details for wrapping it in expect block?
|
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
Code Review
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Gitar
|



Describe your changes:
Fixes
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
reducedMotion: 'reduce'context option to reduce test flakinesswaitForAllLoadersToDisappear()helper in user search flowThis will update automatically on new commits.