Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
``` 1) [firefox] › navigation_tests.ts:161:1 › test following a same-origin unannotated link inside a data-turbo=false container page.click: Target closed =========================== logs =========================== waiting for selector "#same-origin-unannotated-link-inside-false-container" selector resolved to visible <a href="/src/tests/fixtures/one.html" id="same-ori…>Same-origin unannotated link inside data-turbo=fa…</a> attempting click action waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed ============================================================ 160 | 161 | test("test following a same-origin unannotated link inside a data-turbo=false container", async ({ page }) => { > 162 | page.click("#same-origin-unannotated-link-inside-false-container") | ^ 163 | await nextBody(page) 164 | assert.equal(pathname(page.url()), "/src/tests/fixtures/one.html") 165 | assert.equal(await visitAction(page), "load") at /home/runner/work/turbo/turbo/src/tests/functional/navigation_tests.ts:162:8 ``` When driving tests that navigate `[data-turbo="false"]` anchors, replace the bespoke `await nextBody(page)` helper with Playwright's built-in and more predictable [Page.waitForEvent("load")][], since the entire document will navigate. [Page.waitForEvent("load")]: https://playwright.dev/docs/api/class-page#page-wait-for-event
- Loading branch information