Fix flakey test getOpenTabs and re-enable unit tests (#5332)

- Replace fixed 100ms timeout with pWaitFor polling mechanism
- Set 2-second timeout with 50ms polling interval
- Test now waits exactly as long as needed for tabs to be created
This commit is contained in:
Sarah Fortune
2025-08-03 20:51:05 -07:00
committed by GitHub
parent a107f45c6a
commit 0178c3fa90
2 changed files with 27 additions and 8 deletions
+2 -4
View File
@@ -96,10 +96,8 @@ jobs:
- name: Build Tests and Extension
run: npm run pretest
# Unit Tests disabled due to module system conflicts between backend and webview-ui
# FIX: Right now the tests are run when the PR is being reviewed, but if main is updated after that, the PR can merge without the tests being run on the latest version of main.
# - name: Unit Tests
# run: npm run test:unit
- name: Unit Tests
run: npm run test:unit
# Run extension tests with coverage
- name: Extension Tests with Coverage