release notes
release notes
Published 3/14/2022
MinorContains new features
New options for methods page.screenshot(), locator.screenshot() and elementHandle.screenshot():
animations: "disabled" rewinds all CSS animations and transitions to a consistent state.mask: Locator[] masks given elements, overlaying them with pink #FF00FF boxes.expect().toMatchSnapshot() now supports anonymous snapshots: when snapshot name is missing, Playwright Test will generate one
automatically:
expect('Web is Awesome <3').toMatchSnapshot();
New maxDiffPixels and maxDiffPixelRatio options for fine-grained screenshot comparison using expect().toMatchSnapshot():
expect(await page.screenshot()).toMatchSnapshot({
maxDiffPixels: 27, // allow no more than 27 different pixels.
});
It is most convenient to specify maxDiffPixels or maxDiffPixelRatio once in TestConfig.expect.
Playwright Test now adds TestConfig.fullyParallel mode. By default, Playwright Test parallelizes between files. In fully parallel mode, tests inside a single file are also run in parallel. You can also use --fully-parallel command line flag.
// playwright.config.ts
export default {
fullyParallel: true,
};
TestProject.grep and TestProject.grepInvert are now configurable per project. For example, you can now
configure smoke tests project using grep:
// playwright.config.ts
export default {
projects: [
{
name: 'smoke tests',
grep: /@smoke/,
},
],
};
Trace Viewer now shows API testing requests.
locator.highlight() visually reveals element(s) for easier debugging.
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.This version was also tested against the following stable channels:
release notes
Published 3/14/2022
MinorContains new features
New options for methods page.screenshot(), locator.screenshot() and elementHandle.screenshot():
animations: "disabled" rewinds all CSS animations and transitions to a consistent state.mask: Locator[] masks given elements, overlaying them with pink #FF00FF boxes.expect().toMatchSnapshot() now supports anonymous snapshots: when snapshot name is missing, Playwright Test will generate one
automatically:
expect('Web is Awesome <3').toMatchSnapshot();
New maxDiffPixels and maxDiffPixelRatio options for fine-grained screenshot comparison using expect().toMatchSnapshot():
expect(await page.screenshot()).toMatchSnapshot({
maxDiffPixels: 27, // allow no more than 27 different pixels.
});
It is most convenient to specify maxDiffPixels or maxDiffPixelRatio once in TestConfig.expect.
Playwright Test now adds TestConfig.fullyParallel mode. By default, Playwright Test parallelizes between files. In fully parallel mode, tests inside a single file are also run in parallel. You can also use --fully-parallel command line flag.
// playwright.config.ts
export default {
fullyParallel: true,
};
TestProject.grep and TestProject.grepInvert are now configurable per project. For example, you can now
configure smoke tests project using grep:
// playwright.config.ts
export default {
projects: [
{
name: 'smoke tests',
grep: /@smoke/,
},
],
};
Trace Viewer now shows API testing requests.
locator.highlight() visually reveals element(s) for easier debugging.
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.This version was also tested against the following stable channels:
Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.