Commit bb03c5b
fix(playwright): use toHaveURL for SPA navigation in saved-query test
The saved queries list uses React Router <Link>, which navigates via
history.pushState — no full page load occurs. page.waitForURL with
waitUntil hangs forever because domcontentloaded/load events never
re-fire on SPA transitions. Switch to expect(page).toHaveURL() which
polls the current URL instead of waiting for navigation events.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a8c85b2 commit bb03c5b
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| |||
0 commit comments