Update dependency playwright-chromium to v1.20.2 #168
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.7.1
->1.20.2
Release Notes
Microsoft/playwright
v1.20.2
Compare Source
Highlights
This patch includes the following bug fixes:
https://github.com/microsoft/playwright/issues/13078 - [BUG] Extension required when importing other files with type="module"https://github.com/microsoft/playwright/issues/130999 - [BUG] beforeAll is called before each test (fullyParallelhttps://github.com/microsoft/playwright/issues/1320404 - [BUG] mask stalls the screenshot
Browser Versions
This version was also tested against the following stable channels:
v1.20.1
Compare Source
Highlights
This patch includes the following bug fixes:
https://github.com/microsoft/playwright/issues/12711 - [REGRESSION] Page.screenshot hangs on some siteshttps://github.com/microsoft/playwright/issues/128077 - [BUG] Cookies get assigned before fulfilling a responshttps://github.com/microsoft/playwright/issues/1281414 - [Question] how to use expect.any in playwrighttps://github.com/microsoft/playwright/issues/12821821 - [BUG] Chromium: Cannot click, element intercepts pointer evehttps://github.com/microsoft/playwright/issues/128362836 - [REGRESSION]: Tests not detected as ES module in vhttps://github.com/microsoft/playwright/issues/1286212862 - [Feature] Allow to use toMatchSnapshot for file formats other than txt (e.g.https://github.com/microsoft/playwright/issues/12887/12887 - [BUG] Locator.count() with _vue selector withttps://github.com/microsoft/playwright/issues/12940es/12940 - [BUG] npm audit - High Severity vulnerability in json5 package forcing to install Playwrighhttps://github.com/microsoft/playwright/issues/12974ues/12974 - [BUG] Regression - chromium browser closes during test or debugging session on macos
Browser Versions
This version was also tested against the following stable channels:
v1.20.0
Compare Source
Highlights
New options for methods
page.screenshot()
,locator.screenshot()
andelementHandle.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 oneautomatically:
New
maxDiffPixels
andmaxDiffPixelRatio
options for fine-grained screenshot comparison usingexpect().toMatchSnapshot()
:It is most convenient to specify
maxDiffPixels
ormaxDiffPixelRatio
once inTestConfig.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.TestProject.grep
andTestProject.grepInvert
are now configurable per project. For example, you can nowconfigure smoke tests project using
grep
:Trace Viewer now shows API testing requests.
locator.highlight()
visually reveals element(s) for easier debugging.Announcements
mcr.microsoft.com/playwright/python
. Please switch over to it if you use Python. This is the last release that includes Python inside our javascriptmcr.microsoft.com/playwright
docker image.Browser Versions
This version was also tested against the following stable channels:
v1.19.2
Compare Source
Highlights
This patch includes the following bug fixes:
https://github.com/microsoft/playwright/issues/12091 - [BUG] playwright 1.19.0 generates more than 1 trace file per testhttps://github.com/microsoft/playwright/issues/121066 - [BUG] Error: EBUSY: resource busy or locked when using volumes in docker-compose with playwright 1.19.0 and mcr.microsoft.com/playwright:v1.15.0-focal
Browser Versions
This version was also tested against the following stable channels:
v1.19.1
Compare Source
Highlights
This patch includes the following bug fixes:
https://github.com/microsoft/playwright/issues/12075 - [Question] After update to 1.19 firefox fails to runhttps://github.com/microsoft/playwright/issues/120900 - [BUG] did something change on APIRequest/Response APIs ?
Browser Versions
This version was also tested against the following stable channels:
v1.19.0
Compare Source
Version 1.19
Playwright Test Updates
Soft assertions
Playwright Test v1.19 now supports soft assertions. Failed soft assertions do not terminate test execution, but mark the test as failed. Read more in our documentation.
Custom error messages
You can now specify a custom error message as a second argument to the
expect
andexpect.soft
functions, for example:The error would look like this:
Parallel mode in file
By default, tests in a single file are run in order. If you have many independent tests in a single file, you can now
run them in parallel with
method: test.describe.configure
:It is unlikely that this change will affect you, no action is required if your tests keep running as they did.
We've noticed that in rare cases, the set of tests to be executed was configured in the global setup by means of the environment variables. We also noticed some applications that were post processing the reporters' output in the global teardown. If you are doing one of the two, learn more
Locator Updates
Locator now supports a
has
option that makes sure it contains another locator inside:The snippet above will select article that has highlight in it and will press the button in it.
Read more in locator documentation
Other Updates
method: Locator.page
method: Page.screenshot
andmethod: Locator.screenshot
now automatically hides blinking careturl
intestConfig.webServer
to ensure your web server is ready before running the testsproperty: TestInfo.errors
andproperty: TestResult.errors
that contain all failed assertions and soft assertions.Browser Versions
This version was also tested against the following stable channels:
v1.18.1
Compare Source
Highlights
This patch includes improvements to the TypeScript support and the following bug fixes:
https://github.com/microsoft/playwright/issues/11550 - [REGRESSION]: Errors inside route handler does not lead to unhandled rejections anymorehttps://github.com/microsoft/playwright/issues/115522 - [BUG] Could not resolve "C:\repo\framework\utils" in file C:\repo\tests\test.ts.
Browser Versions
This version was also tested against the following stable channels:
v1.18.0
Compare Source
Locator Improvements
locator.dragTo(locator)
][locator.dragTo(locator)]expect(locator).toBeChecked({ checked })
][expect(locator).toBeChecked({ checked })]Testing API improvements
expect(response).toBeOK()
][expect(response).toBeOK()]testInfo.attach()
][testInfo.attach()]test.info()
][test.info()]Improved TypeScript Support
tsconfig.json
'sbaseUrl
andpaths
, so you can use aliasesPW_EXPERIMENTAL_TS_ESM
that allows importing ESM modules in your TS code, without the need for the compile step. Don't forget the.js
suffix when you are importing your esm modules. Run your tests as follows:Create Playwright
The
npm init playwright
command is now generally available for your use:This will scaffold everything needed to get started with Playwright Test: configuration file, optionally add examples, a GitHub Action workflow and a first test
example.spec.ts
.New APIs & changes
testCase.repeatEachIndex
][testCase.repeatEachIndex] APIacceptDownloads
][acceptDownloads] option now defaults totrue
Breaking change: custom config options
Custom config options are a convenient way to parametrize projects with different values. Learn more in the parametrization guide.
Previously, any fixture introduced through [
test.extend
][test.extend] could be overridden in the [testProject.use
][testProject.use] config section. For example,The proper way to make a fixture parametrized in the config file is to specify
option: true
when defining the fixture. For example,Browser Versions
This version was also tested against the following stable channels:
(
1.18.0-beta-1642620709000
)v1.17.2
Compare Source
Bugfixes
#11274 - fix: pin colors to 1.4.0
#11228 - fix(click): don't fail on stale context while click
v1.17.1
Compare Source
Highlights
This patch includes bug fixes for the following issues:
https://github.com/microsoft/playwright/issues/10638 - [BUG] Locator.click -> subtree intercepts pointer events since version 1.17.0https://github.com/microsoft/playwright/issues/106322 - [BUG] Playwright 1.17.0 -> After clicking the element - I get an error that click action was failehttps://github.com/microsoft/playwright/issues/1062727 - [REGRESSION]: Can no longer click Material UI select bhttps://github.com/microsoft/playwright/issues/10620620 - [BUG] trailing zero width whitespace fails toHaveText
Browser Versions
This version of Playwright was also tested against the following stable channels:
(1.17.1)
v1.17.0
Compare Source
Frame Locators
Playwright 1.17 introduces frame locators - a locator to the iframe on the page. Frame locators capture the logic sufficient to retrieve the
iframe
and then locate elements in that iframe. Frame locators are strict by default, will wait foriframe
to appear and can be used in Web-First assertions.Frame locators can be created with either [
page.frameLocator(selector)
][page.frameLocator(selector)] or [locator.frameLocator(selector)
][locator.frameLocator(selector)] method.Read more at our documentation.
Trace Viewer Update
Playwright Trace Viewer is now available online at https://trace.playwright.dev! Just drag-and-drop your
trace.zip
file to inspect its contents.HTML Report Update
Ubuntu ARM64 support + more
New APIs
'title'
option'commit'
waiting optiontestConfig.snapshotDir
optiontestInfo.parallelIndex
testInfo.titlePath
testOptions.trace
has new optionsexpect.toMatchSnapshot
supports subdirectoriesreporter.printsToStdio()
Browser Versions
This version was also tested against the following stable channels:
v1.16.3
Compare Source
Highlights
This patch includes bug fixes for the following issues:
https://github.com/microsoft/playwright/issues/9849 - [BUG]: toHaveCount fails with serialization error in 1.16 when elements do not yet existshttps://github.com/microsoft/playwright/issues/98977 - [Bug]: TraceViewer doesn't show actionhttps://github.com/microsoft/playwright/issues/990202 - [BUG] Warn if the html-report gets opened with file://
Browser Versions
This version of Playwright was also tested against the following stable channels:
(1.16.3-1635814179000)
v1.16.2
Compare Source
Highlights
This patch includes bug fixes for the following issues:
https://github.com/microsoft/playwright/issues/7818 - [Bug]: dedup snapshot CSS imageshttps://github.com/microsoft/playwright/issues/97411 - [BUG] Error while an attempt to install Playwright in CI -> Failed at the playwright@1.16.1 install scriphttps://github.com/microsoft/playwright/issues/975656 - [Regression] Page.screenshot does not work inside Docker with BrowserServhttps://github.com/microsoft/playwright/issues/9759759 - [BUG] 1.16.x the package.json is not export anymhttps://github.com/microsoft/playwright/issues/97609760 - [BUG] snapshot updating causes failures for all tries except the https://github.com/microsoft/playwright/issues/9768/9768 - [BUG] ignoreHTTPSErrors not working on page.request
Browser Versions
This version of Playwright was also tested against the following stable channels:
(1.16.2-1635322350000)
v1.16.1
Compare Source
Highlights
This patch includes bug fixes for the following issues:
https://github.com/microsoft/playwright/issues/9688 - [REGRESSION]: toHaveCount does not work anymore with 0 elementshttps://github.com/microsoft/playwright/issues/96922 - [BUG] HTML report shows locator._withElement for locator.evaluate
Browser Versions
This version of Playwright was also tested against the following stable channels:
(1.16.0-1634781227000)
v1.16.0
Compare Source
🎭 Playwright Test
API Testing
Playwright 1.16 introduces new API Testing that lets you send requests to the server directly from Node.js!
Now you can:
To do a request on behalf of Playwright's Page, use new [
page.request
][page.request] API:To do a stand-alone request from node.js to an API endpoint, use new [
request
fixture][request fixture]:Read more about it in our API testing guide.
Response Interception
It is now possible to do response interception by combining API Testing with request interception.
For example, we can blur all the images on the page:
Read more about response interception.
New HTML reporter
Try it out new HTML reporter with either
--reporter=html
or areporter
entryin
playwright.config.ts
file:$ npx playwright test --reporter=html
The HTML reporter has all the information about tests and their failures, including surfacing
trace and image artifacts.
Read more about our reporters.
🎭 Playwright Library
locator.waitFor
Wait for a locator to resolve to a single element with a given state.
Defaults to the
state: 'visible'
.Comes especially handy when working with lists:
Read more about [
locator.waitFor()
][locator.waitFor()].🎭 Playwright Trace Viewer
npx playwright show-trace
and drop trace files to the trace viewer PWARead more about Trace Viewer.
Browser Versions
This version of Playwright was also tested against the following stable channels:
(1.16.0-1634781227000)
v1.15.2
Compare Source
Highlights
This patch includes bug fixes for the following issues:
https://github.com/microsoft/playwright/issues/9261 - [BUG] npm init playwright fails on path spaceshttps://github.com/microsoft/playwright/issues/92988 - [Question]: Should new Headers methods work in RouteAsync ?
Browser Versions
This version of Playwright was also tested against the following stable channels:
1.15.2-1633455481000
v1.15.1
Compare Source
Highlights
This patch includes bug fixes for the following issues:
#9065 - [BUG] browser(webkit): disable COOP support
#9092 - [BUG] browser(webkit): fix text padding
#9048 - [BUG] fix(test-runner): toHaveURL respect baseURL
#8955 - [BUG] fix(inspector): stop on all snapshottable actions
#8921 - [BUG] fix(test runner): after hooks step should not be nested
#8975 - [BUG] feat(fetch): support form data and json encodings
#9071 - [BUG] fix(fetch): be compatible with a 0 timeout
#8999 - [BUG] fix: do not dedup header values
#9038 - [BUG] fix: restore support for slowmo connect option
Browser Versions
This version of Playwright was also tested against the following stable channels:
1.15.0-1633020276000
v1.15.0
Compare Source
🎭 Playwright Library
🖱️ Mouse Wheel
By using
Page.mouse.wheel
you are now able to scroll vertically or horizontally.📜 New Headers API
Previously it was not possible to get multiple header values of a response. This is now possible and additional helper functions are available:
🌈 Forced-Colors emulation
Its now possible to emulate the
forced-colors
CSS media feature by passing it in the context options or calling Page.emulateMedia().New APIs
times
option to specify how many times this route should be matched.🎭 Playwright Test
🤝
test.parallel()
run tests in the same file in parallelBy default, tests in a single file are run in order. If you have many independent tests in a single file, you can now run them in parallel with test.describe.parallel(title, callback).
🛠 Add
--debug
CLI flagBy using
npx playwright test --debug
it will enable the Playwright Inspector for you to debug your tests.Browser Versions
This version of Playwright was also tested against the following stable channels:
v1.14.1
Compare Source
Highlights
This patch includes bug fixes for the following issues:
#8287 - [BUG] webkit crashes intermittently: "file data stream has an unexpected number of bytes"
#8281 - [BUG] HTML report crashes if diff snapshot does not exists
#8230 - Using React Selectors with multiple React trees
#8366 - [BUG] Mark timeout in isVisible as deprecated and noop
Browser Versions
This version of Playwright was also tested against the following stable channels:
v1.14.0
Compare Source
🎭 Playwright Library
⚡️ New "strict" mode
Selector ambiguity is a common problem in automation testing. "strict" mode
ensures that your selector points to a single element and throws otherwise.
Pass
strict: true
into your action calls to opt in.📍 New Locators API
Locator represents a view to the element(s) on the page. It captures the logic sufficient to retrieve the element at any given moment.
The difference between the Locator and ElementHandle is that the latter points to a particular element, while Locator captures the logic of how to retrieve that element.
Also, locators are "strict" by default!
Learn more in the documentation.
🧩 Experimental React and Vue selector engines
React and Vue selectors allow selecting elements by its component name and/or property values. The syntax is very similar to attribute selectors and supports all attribute selector operators.
Learn more in the react selectors documentation and the vue selectors documentation.
✨ New
nth
andvisible
selector enginesnth
selector engine is equivalent to the:nth-match
pseudo class, but could be combined with other selector engines.visible
selector engine is equivalent to the:visible
pseudo class, but could be combined with other selector engines.🎭 Playwright Test
✅ Web-First Assertions
expect
now supports lots of new web-first assertions.Consider the following example:
Playwright Test 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 either pass this timeout or configure it once via thetestProject.expect
value in test config.By default, the timeout for assertions is not set, so it'll wait forever, until the whole test times out.
List of all new assertions:
expect(locator).toBeChecked()
expect(locator).toBeDisabled()
expect(locator).toBeEditable()
expect(locator).toBeEmpty()
expect(locator).toBeEnabled()
expect(locator).toBeFocused()
expect(locator).toBeHidden()
expect(locator).toBeVisible()
expect(locator).toContainText(text, options?)
expect(locator).toHaveAttribute(name, value)
expect(locator).toHaveClass(expected)
expect(locator).toHaveCount(count)
expect(locator).toHaveCSS(name, value)
expect(locator).toHaveId(id)
expect(locator).toHaveJSProperty(name, value)
expect(locator).toHaveText(expected, options)
expect(page).toHaveTitle(title)
expect(page).toHaveURL(url)
expect(locator).toHaveValue(value)
⛓ Serial mode with
describe.serial
Declares a group of tests that should always be run serially. If one of the tests fails, all subsequent tests are skipped. All tests in a group are retried together.
Learn more in the documentation.
🐾 Steps API with
test.step
Split long tests into multiple steps using
test.step()
API:Step information is exposed in reporters API.
🌎 Launch web server before running tests
To launch a server during the tests, use the
webServer
option in the configuration file. The server will wait for a given port to be available before running the tests, and the port will be passed over to Playwright as abaseURL
when creating a context.Learn more in the documentation.
Browser Versions
This version of Playwright was also tested against the following stable channels:
v1.13.1
Compare Source
Highlights
This patch includes bug fixes for the following issues:
#7800 - [Bug]: empty screen when opening trace.zip
#7785 - [Bug]: Channel installation requires curl/wget on the system
#7746 - [Bug]: global use is not working to launch firefox or webkit
#7849 - [Bug]: Setting the current shard through config uses n+1 instead
Browser Versions
v1.13.0
Compare Source
Playwright Test
baseURL
fixture to support relative paths in tests.Playwright
page.dragAndDrop()
][page.dragAndDrop()] API.recordHar
option in [browser.newContext()
][browser.newContext()].Tools
console.log()
calls.New and Overhauled Guides
Browser Versions
New Playwright APIs
baseURL
option in [browser.newContext()
][browser.newContext()] and [browser.newPage()
][browser.newPage()]response.securityDetails()
][response.securityDetails()] and [response.serverAddr()
][response.serverAddr()]page.dragAndDrop()
][page.dragAndDrop()] and [frame.dragAndDrop()
][frame.dragAndDrop()]download.cancel()
][download.cancel()]page.inputValue()
][page.inputValue()], [frame.inputValue()
][frame.inputValue()] and [elementHandle.inputValue()
][elementHandle.inputValue()]force
option in [page.fill()
][page.fill()], [frame.fill()
][frame.fill()], and [elementHandle.fill()
][elementHandle.fill()]force
option in [page.selectOption()
][page.selectOption()], [frame.selectOption()
][frame.selectOption()], and [elementHandle.selectOption()
][elementHandle.selectOption()]v1.12.3
Compare Source
Highlights
This patch release includes bug fixes for the following issues:
#7085 - [BUG] Traceviewer screens are not recorded well when using constructable stylesheets
#7093 - Folder for a test-case is getting generated in test-results even if Test Case Passes when properties are given on Failure
#7099 - [test-runner] Missing types for the expect library
#7124 - [Test Runner] config.outputDir must be an absolute path
#7141 - [Feature] Options for video resolution
#7163 - [Test runner] artifacts are removed
#7223 - [BUG] test-runner viewport can't be null
#7284 - [BUG] incorrect @playwright/test typings for toMatchSnapshot/toMatchInlineSnapshot/etc
#7304 - [BUG] Snapshots are not captured if there is an animation at the beginning
#7326 - [BUG] When PW timeouts, last trace action does not get collected[BUG] When PW timeouts, last trace action does not get collected
Browser Versions
This version of Playwright was also tested against the following stable channels:
v1.12.2
Compare Source
Highlights
This patch release includes bugfixes for the following issues:
Browser Versions
This version of Playwright was also tested against the following stable channels:
v1.12.1
Compare Source
Highlights
This patch includes bug fixes for the following issues:
#6984 - slowMo does not exist in type 'Fixtures<{}, {}, PlaywrightTestOptions, PlaywrightWorkerOptions>'
#6982 - [trace viewer] srcset sanitization removes space between values, hence breaks the links
#6981 - [BUG] Getting "Please install @playwright/test package to use Playwright Test."
Browser Versions
This version of Playwright was also tested against the following stable channels:
v1.12.0
Compare Source
⚡️ Introducing Playwright Test
Playwright Test is a new test runner built from scratch by Playwright team specifically to accommodate end-to-end testing needs:
Installation:
Simple test
tests/foo.spec.ts
:Running:
npx playwright test
👉 Read more in testrunner documentation.
🧟♂️ Introducing Playwright Trace & TraceViewer
Playwright TraceViewer is a new GUI tool that helps exploring recorded Playwright traces after the script ran. Playwright traces let you examine:
Traces are recorded using the new [
browserContext.tracing
][browserContext.tracing] API:Traces are examined later with the Playwright CLI:
That will open the following GUI:
👉 Read more in trace viewer documentation.
Browser Versions
This version of Playwright was also tested against the following stable channels:
New APIs
reducedMotion
option in [page.emulateMedia()
][page.emulateMedia()], [browserType.launchPersistentContext()
][browserType.launchPersistentContext()], [browser.newContext()
][browser.newContext()] and [browser.newPage()
][browser.newPage()]browserContext.on('request')
][browserContext.on('request')]browserContext.on('requestfailed')
][browserContext.on('requestfailed')]browserContext.on('requestfinished')
][browserContext.on('requestfinished')]browserContext.on('response')
][browserContext.on('response')]tracesDir
option in [browserType.launch()
][browserType.launch()] and [browserType.launchPersistentContext()
][browserType.launchPersistentContext()]browserContext.tracing
][browserContext.tracing] API namespacedownload.page()
][download.page()] methodelectron.launch()
][electron.launch()]:acceptDownloads
bypassCSP
colorScheme
extraHTTPHeaders
geolocation
httpCredentials
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.