playwright/tests
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
..
android chore(lint): Ensure EOL newlines (#34117) 2024-12-20 09:17:09 -08:00
assets test: do not check deprecated KeyboardEvent.keyCode property (#34472) 2025-01-24 15:09:39 -08:00
bidi chore(bidi): use full test title in CSV expectations (#34496) 2025-01-27 14:17:47 +01:00
components chore: update TypeScript to v5.7 (#33994) 2024-12-13 04:52:04 -08:00
config Revert "Reapply "fix(har timing): record connect timing for proxied connections" (#32855) (#33003)" (#34535) 2025-01-29 14:51:31 +00:00
electron test: update 'should work for canvas' test expectation (#33685) 2024-11-20 17:13:07 +01:00
expect chore(lint): Ensure EOL newlines (#34117) 2024-12-20 09:17:09 -08:00
image_tools chore: bump @babel dependencies (#27632) 2023-10-17 20:52:41 +02:00
installation chore: move winldd to CDN (#34078) 2024-12-19 23:29:21 +01:00
library chore: make noWaitAfter a default 2025-02-04 15:17:43 +00:00
page chore: make noWaitAfter a default 2025-02-04 15:17:43 +00:00
playwright-test test: ensure that attachments are available in onStepEnd (#34590) 2025-02-03 13:54:28 +01:00
stress test: fix stress tests bots (#32513) 2024-09-09 12:52:40 +02:00
third_party/proxy chore(ui): test that UI works behind proxy, take 2 (#33771) 2024-12-18 12:39:08 +01:00
webview2 test: update 'should work for canvas' test expectation (#33685) 2024-11-20 17:13:07 +01:00
.eslintrc.js chore: strengthen linting (#29669) 2024-02-26 16:52:28 -08:00
tsconfig.json chore: use own socks5 server for tests (#31639) 2024-07-11 14:12:48 +02:00