From 66fe335d7a3f6092a449a2f9260d594823698e30 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Mon, 12 Sep 2022 18:25:59 -0400 Subject: [PATCH 1/2] chore: add release notes for js --- docs/src/release-notes-js.md | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.md index 2046c8785743e..265cbe675c342 100644 --- a/docs/src/release-notes-js.md +++ b/docs/src/release-notes-js.md @@ -4,6 +4,45 @@ title: "Release notes" toc_max_heading_level: 2 --- +## Version 1.26 + +### (Experimental) Docker integration + +Playwright Test now ships an **experimental** Docker integration. The Docker container provides a consistent environment, eliminating browser rendering differences across platforms. + +With this integration, only **browser binaries** are running inside a Docker container, while all the code is still running on the host operating system. + +![experimental docker integration](https://user-images.githubusercontent.com/746130/189769063-2ce2fc36-2554-4881-85c8-d649ebfea714.png) + +Read more in [our documentation](./docker#experimental-playwright-test-docker-integration). + +### Test Runner Improvements + +- New option `enabled` for [`method: LocatorAssertions.toBeEnabled`]. +- [`method: LocatorAssertions.toHaveText`] now pierces open shadow roots. +- New option `editable` for [`method: LocatorAssertions.toBeEditable`]. +- New option `visible` for [`method: LocatorAssertions.toBeVisible`]. +- New flag `--pass-with-no-tests` that allows the test suite to pass when no files are found. +- New flag `--ignore-snapshots` to skip snapshot expectations, such as `expect(value).toMatchSnapshot()` and `expect(page).toHaveScreenshot()`. +- New option `maxRedirects` for [`method: APIRequestContext.get`] and others to limit redirect count. + +### Behavior Change + +A bunch of Playwright APIs already support the `waitUntil: 'domcontentloaded'` option. +For example: + +```js +await page.goto('https://playwright.dev', { + waitUntil: 'domcontentloaded', +}); +``` + +Prior to 1.26, this would wait for all iframes to fire the `DOMContentLoaded` +event. + +To align with web specification, the `'domcontentloaded'` value only waits for +the target frame to fire the `'DOMContentLoaded'` event. Use `waitUntil: 'load'` to wait for all iframes. + ## Version 1.25
From 646f15e415ba4cee0d43ef6bb72b1cdfc7982d11 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Mon, 12 Sep 2022 19:16:40 -0400 Subject: [PATCH 2/2] fixes --- docs/src/release-notes-js.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.md index 265cbe675c342..952783e2fd2dd 100644 --- a/docs/src/release-notes-js.md +++ b/docs/src/release-notes-js.md @@ -12,19 +12,22 @@ Playwright Test now ships an **experimental** Docker integration. The Docker con With this integration, only **browser binaries** are running inside a Docker container, while all the code is still running on the host operating system. -![experimental docker integration](https://user-images.githubusercontent.com/746130/189769063-2ce2fc36-2554-4881-85c8-d649ebfea714.png) + Read more in [our documentation](./docker#experimental-playwright-test-docker-integration). -### Test Runner Improvements +### Assertions - New option `enabled` for [`method: LocatorAssertions.toBeEnabled`]. - [`method: LocatorAssertions.toHaveText`] now pierces open shadow roots. - New option `editable` for [`method: LocatorAssertions.toBeEditable`]. - New option `visible` for [`method: LocatorAssertions.toBeVisible`]. -- New flag `--pass-with-no-tests` that allows the test suite to pass when no files are found. -- New flag `--ignore-snapshots` to skip snapshot expectations, such as `expect(value).toMatchSnapshot()` and `expect(page).toHaveScreenshot()`. + +### Other highlights + - New option `maxRedirects` for [`method: APIRequestContext.get`] and others to limit redirect count. +- New command-line flag `--pass-with-no-tests` that allows the test suite to pass when no files are found. +- New command-line flag `--ignore-snapshots` to skip snapshot expectations, such as `expect(value).toMatchSnapshot()` and `expect(page).toHaveScreenshot()`. ### Behavior Change