Commit 166d3fb
committed
ci: enforce puppeteer launch preflight before tests (self-heal reinstall)
Recent runs still reached rush test with missing Chrome 148 despite install steps.
Add a hard pre-test gate that:
- lists installed puppeteer browsers,
- validates launch via puppeteer.launch(headless:'new'),
- if launch fails, clears chrome/chrome-headless-shell cache entries,
reinstalls both browsers explicitly, and re-validates launch.
This prevents test execution when browser install silently no-ops or leaves
an unusable cache state.1 parent 48b11b8 commit 166d3fb
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
54 | 65 | | |
55 | 66 | | |
56 | 67 | | |
| |||
0 commit comments