This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade playwright from 1.38.1 to 1.39.0.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
- The recommended version is **39 versions** ahead of your current version.
- The recommended version was released **21 days ago**, on 2023-10-11.
Release notes Package name: playwright
You can extend Playwright assertions by providing custom matchers. These matchers will be available on the expect object.
import{expectasbaseExpect}from'@ playwright/test';exportconstexpect=baseExpect.extend({asynctoHaveAmount(locator: Locator,expected: number,options?: {timeout?: number}){// ... see documentation for how to write matchers.},});test('pass',async({ page })=>{awaitexpect(page.getByTestId('cart')).toHaveAmount(5);});
#27071 - expect(value).toMatchSnapshot() deprecation announcement on V1.38 #27072 - [BUG] PWT trace viewer fails to load trace and throws TypeError #27073 - [BUG] RangeError: Invalid time value #27087 - [REGRESSION]: npx playwright test --list prints all tests twice #27113 - [REGRESSION]: No longer able to extend PlaywrightTest.Matchers type for locators and pages #27144 - [BUG]can not display trace #27163 - [REGRESSION] Single Quote Wrongly Escaped by Locator When Using Unicode Flag #27181 - [BUG] evaluate serializing fails at 1.38
Browser Versions
Chromium 117.0.5938.62
Mozilla Firefox 117.0
WebKit 17.0
This version was also tested against the following stable channels:
ae5610f chore: include full messages into `pw:channel` logs (#27488)
Compare
**Note:** *You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.*
For more information:
🧐 [View latest project report](https://app.snyk.io/org/cognigy-gmbh/project/3df403fe-2b92-4cf7-8bfc-e55053104c9c?utm_source=github&utm_medium=referral&page=upgrade-pr)
🛠 [Adjust upgrade PR settings](https://app.snyk.io/org/cognigy-gmbh/project/3df403fe-2b92-4cf7-8bfc-e55053104c9c/settings/integration?utm_source=github&utm_medium=referral&page=upgrade-pr)
🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.snyk.io/org/cognigy-gmbh/project/3df403fe-2b92-4cf7-8bfc-e55053104c9c/settings/integration?pkg=playwright&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades)
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade playwright from 1.38.1 to 1.39.0.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.- The recommended version is **39 versions** ahead of your current version. - The recommended version was released **21 days ago**, on 2023-10-11.
Release notes
Package name: playwright
Add custom matchers to your expect
You can extend Playwright assertions by providing custom matchers. These matchers will be available on the expect object.
See the documentation for a full example.
Merge test fixtures
You can now merge test fixtures from multiple files or modules:
Merge custom expect matchers
You can now merge custom expect matchers from multiple files or modules:
Hide implementation details: box test steps
You can mark a
test.step()
as "boxed" so that errors inside it point to the step call site.Error: Timed out 5000ms waiting for expect(locator).toBeVisible() ... error details omitted ... 14 | await page.goto('https://github.com/login'); > 15 | await login(page); | ^ 16 | });
See
test.step()
documentation for a full example.New APIs
expect(locator).toHaveAttribute(name)
Browser Versions
This version was also tested against the following stable channels:
Highlights
#27071 - expect(value).toMatchSnapshot() deprecation announcement on V1.38
#27072 - [BUG] PWT trace viewer fails to load trace and throws TypeError
#27073 - [BUG] RangeError: Invalid time value
#27087 - [REGRESSION]: npx playwright test --list prints all tests twice
#27113 - [REGRESSION]: No longer able to extend PlaywrightTest.Matchers type for locators and pages
#27144 - [BUG]can not display trace
#27163 - [REGRESSION] Single Quote Wrongly Escaped by Locator When Using Unicode Flag
#27181 - [BUG] evaluate serializing fails at 1.38
Browser Versions
This version was also tested against the following stable channels:
Commit messages
Package name: playwright
**Note:** *You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.* For more information: 🧐 [View latest project report](https://app.snyk.io/org/cognigy-gmbh/project/3df403fe-2b92-4cf7-8bfc-e55053104c9c?utm_source=github&utm_medium=referral&page=upgrade-pr) 🛠 [Adjust upgrade PR settings](https://app.snyk.io/org/cognigy-gmbh/project/3df403fe-2b92-4cf7-8bfc-e55053104c9c/settings/integration?utm_source=github&utm_medium=referral&page=upgrade-pr) 🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.snyk.io/org/cognigy-gmbh/project/3df403fe-2b92-4cf7-8bfc-e55053104c9c/settings/integration?pkg=playwright&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades)