Drive-by: - backport removal of toHaveScreenshot from release 1.20 - change webkit 10.15 announcement This also cherry-picks a follow-up to .NET release notes: - docs(release-notes): fix release notes for .net (#12743)
This commit is contained in:
parent
cf1a60bce8
commit
f9ea3d53bc
|
|
@ -5,6 +5,61 @@ title: "Release notes"
|
|||
|
||||
<!-- TOC -->
|
||||
|
||||
## Version 1.20
|
||||
|
||||
### Web-First Assertions
|
||||
|
||||
Playwright for .NET 1.20 introduces [Web-First Assertions](./api/class-playwrightassertions).
|
||||
|
||||
Consider the following example:
|
||||
|
||||
```csharp
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Playwright.NUnit;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Playwright.TestingHarnessTest.NUnit
|
||||
{
|
||||
public class ExampleTests : PageTest
|
||||
{
|
||||
[Test]
|
||||
public async Task StatusBecomesSubmitted()
|
||||
{
|
||||
await Expect(Page.Locator(".status")).ToHaveTextAsync("Submitted");
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Playwright will be re-testing the node with the selector `.status` until
|
||||
fetched Node has the `"Submitted"` text. It will be re-fetching the node and
|
||||
checking it over and over, until the condition is met or until the timeout is
|
||||
reached. You can pass this timeout as an option.
|
||||
|
||||
Read more in [our documentation](./api/class-playwrightassertions).
|
||||
|
||||
### Other Updates
|
||||
|
||||
- New options for methods [`method: Page.screenshot`], [`method: Locator.screenshot`] and [`method: ElementHandle.screenshot`]:
|
||||
* Option `ScreenshotAnimations.Disabled` rewinds all CSS animations and transitions to a consistent state
|
||||
* Option `mask: Locator[]` masks given elements, overlaying them with pink `#FF00FF` boxes.
|
||||
- [`method: Locator.highlight`] visually reveals element(s) for easier debugging.
|
||||
|
||||
### Announcements
|
||||
|
||||
- v1.20 is the last release to receive WebKit update for macOS 10.15 Catalina. Please update MacOS to keep using latest & greatest WebKit!
|
||||
|
||||
### Browser Versions
|
||||
|
||||
- Chromium 101.0.4921.0
|
||||
- Mozilla Firefox 97.0.1
|
||||
- WebKit 15.4
|
||||
|
||||
This version was also tested against the following stable channels:
|
||||
|
||||
- Google Chrome 99
|
||||
- Microsoft Edge 99
|
||||
|
||||
## Version 1.19
|
||||
|
||||
### Highlights
|
||||
|
|
|
|||
|
|
@ -5,6 +5,32 @@ title: "Release notes"
|
|||
|
||||
<!-- TOC -->
|
||||
|
||||
## Version 1.20
|
||||
|
||||
### Highlights
|
||||
|
||||
- New options for methods [`method: Page.screenshot`], [`method: Locator.screenshot`] and [`method: ElementHandle.screenshot`]:
|
||||
* Option `ScreenshotAnimations.DISABLED` rewinds all CSS animations and transitions to a consistent state
|
||||
* Option `mask: Locator[]` masks given elements, overlaying them with pink `#FF00FF` boxes.
|
||||
- [Trace Viewer](./trace-viewer) now shows [API testing requests](./src/test-api-testing).
|
||||
- [`method: Locator.highlight`] visually reveals element(s) for easier debugging.
|
||||
|
||||
### Announcements
|
||||
|
||||
- v1.20 is the last release to receive WebKit update for macOS 10.15 Catalina. Please update MacOS to keep using latest & greatest WebKit!
|
||||
|
||||
### Browser Versions
|
||||
|
||||
- Chromium 101.0.4921.0
|
||||
- Mozilla Firefox 97.0.1
|
||||
- WebKit 15.4
|
||||
|
||||
This version was also tested against the following stable channels:
|
||||
|
||||
- Google Chrome 99
|
||||
- Microsoft Edge 99
|
||||
|
||||
|
||||
## Version 1.19
|
||||
|
||||
### Highlights
|
||||
|
|
|
|||
|
|
@ -59,8 +59,7 @@ title: "Release notes"
|
|||
|
||||
- We now ship a designated Python docker image `mcr.microsoft.com/playwright/python`. Please switch over to it if you use
|
||||
Python. This is the last release that includes Python inside our javascript `mcr.microsoft.com/playwright` docker image.
|
||||
- v1.20 is the last release that ships WebKit for macOS 10.15 Catalina. All future versions will support WebKit for macOS 11 BigSur
|
||||
and up.
|
||||
- v1.20 is the last release to receive WebKit update for macOS 10.15 Catalina. Please update MacOS to keep using latest & greatest WebKit!
|
||||
|
||||
### Browser Versions
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,33 @@ title: "Release notes"
|
|||
|
||||
<!-- TOC -->
|
||||
|
||||
## Version 1.20
|
||||
|
||||
### Highlights
|
||||
|
||||
- New options for methods [`method: Page.screenshot`], [`method: Locator.screenshot`] and [`method: ElementHandle.screenshot`]:
|
||||
* Option `animations: "disabled"` rewinds all CSS animations and transitions to a consistent state
|
||||
* Option `mask: Locator[]` masks given elements, overlaying them with pink `#FF00FF` boxes.
|
||||
- [Trace Viewer](./trace-viewer) now shows [API testing requests](./src/test-api-testing).
|
||||
- [`method: Locator.highlight`] visually reveals element(s) for easier debugging.
|
||||
|
||||
### Announcements
|
||||
|
||||
- We now ship a designated Python docker image `mcr.microsoft.com/playwright/python`. Please switch over to it if you use
|
||||
Python. This is the last release that includes Python inside our javascript `mcr.microsoft.com/playwright` docker image.
|
||||
- v1.20 is the last release to receive WebKit update for macOS 10.15 Catalina. Please update MacOS to keep using latest & greatest WebKit!
|
||||
|
||||
### Browser Versions
|
||||
|
||||
- Chromium 101.0.4921.0
|
||||
- Mozilla Firefox 97.0.1
|
||||
- WebKit 15.4
|
||||
|
||||
This version was also tested against the following stable channels:
|
||||
|
||||
- Google Chrome 99
|
||||
- Microsoft Edge 99
|
||||
|
||||
## Version 1.19
|
||||
|
||||
### Highlights
|
||||
|
|
|
|||
Loading…
Reference in a new issue