playwright/tests/library/chromium
Dmitry Gozman af40eae13e chore: make noWaitAfter a default
This changes the last actions, namely `click` and `press`, to not wait
for the ongoing navigations after the action.

Maintaining this behavior becomes tricky, because browsers move away from
guaranteed synchronous navigations to optimized performance. See #34377
for more details.

This is technically a breaking change. Most of the time, this should
not be noticeable, because the next action will auto-wait the navigation
and for any required conditions anyway. However, there are some patterns
revealed by our tests that are affected:
- Calling `goBack/goForward` immediately after an action. This pattern
  requires `expect(page).toHaveURL()` or a similar check inbetween.
- Listening for network events during the action, and immediately
  asserting after the action. This pattern requires `waitForRequest()`
  or a similar promise-based waiter as recommended in best practices.

We maintain the opt-out `env.PLAYWRIGHT_WAIT_AFTER_CLICK` that reverts
to the old behavior for now.

Additionally, previous opt-out option `env.PLAYWRIGHT_SKIP_NAVIGATION_CHECK`
has been removed, because there have been just a single issue with it,
that was immediately addressed in a patch release.
2025-02-04 15:17:43 +00:00
..
oopif.spec.ts-snapshots chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
bfcache.spec.ts chore: make noWaitAfter a default 2025-02-04 15:17:43 +00:00
chromium.spec.ts chore(lint): Ensure EOL newlines (#34117) 2024-12-20 09:17:09 -08:00
connect-over-cdp.spec.ts test: brush up fixtures, unflake some tests (#32854) 2024-09-27 07:06:37 -07:00
css-coverage.spec.ts chore: introduce clock test mode (#31110) 2024-05-31 14:44:26 -07:00
disable-web-security.spec.ts fix(utility): create utility world when web security is disabled (#31458) 2024-06-27 09:29:20 -07:00
js-coverage.spec.ts chore: fix simulated clock bots (#31301) 2024-06-17 09:17:38 -07:00
launcher.spec.ts chore: update chrome extensions doc and tests (#34236) 2025-01-08 17:24:29 +00:00
oopif.spec.ts test: rebase headless-shell/--headless=new/Edge tests (#33350) 2024-10-30 15:12:05 +01:00
session.spec.ts chore: unify target closed errors (#27540) 2023-10-12 11:05:34 -07:00
tracing.spec.ts fix(streams): avoid leaking event listeners (#27291) 2023-09-25 10:59:14 -07:00