Commit 1b7b4db
Fixes #249 - Add retry logic for flaky extension UI test
The extension installed UI test was failing ~50% of the time with
StaleElementReferenceError when trying to get the extension title.
Root cause: Between finding the extension item and calling getTitle(),
VS Code can refresh the extensions list DOM, making the element reference
stale.
Solution: Add retry logic that:
- Catches StaleElementReferenceError
- Retries the entire operation (find + getTitle) up to 3 times
- Waits 500ms between retries to allow DOM to stabilize
- Re-throws if it's a different error or retries are exhausted
This should eliminate the flakiness while maintaining test reliability.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 9a4b1b0 commit 1b7b4db
1 file changed
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
27 | 50 | | |
28 | 51 | | |
29 | 52 | | |
| |||
0 commit comments