playwright/packages/playwright-core
Dmitry Gozman cdb862767f
fix(page): "load" event should fire before "waitForLoadState" resolves (#14897)
Currently, `loadstate` and `load` are two separate events in the protocol,
and are fired in this order. As a result, `waitForLoadState()` sometimes
resolves before the `'load'` event is fired, which is unexpected.

Also fixes a flaky test that assumed `load` event comes after `domcontentloaded`
for the empty page, which is not always a case in Chromium.
2022-06-16 09:35:53 -07:00
..
2022-06-15 16:35:44 -07:00
2021-10-11 16:52:17 +02:00
2021-10-11 16:52:17 +02:00

playwright-core

This package contains the no-browser flavor of Playwright.