Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump playwright from 1.17.2 to 1.18.0 #2393

Merged
merged 1 commit into from
Jan 21, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 21, 2022

Bumps playwright from 1.17.2 to 1.18.0.

Release notes

Sourced from playwright's releases.

v1.18.0

Locator Improvements

  • [locator.dragTo(locator)]
  • [expect(locator).toBeChecked({ checked })]
  • Each locator can now be optionally filtered by the text it contains:
    await page.locator('li', { hasText: 'my item' }).locator('button').click();
    Read more in [locator documentation].

Testing API improvements

  • [expect(response).toBeOK()]
  • [testInfo.attach()]
  • [test.info()]

Improved TypeScript Support

  1. Playwright Test now respects tsconfig.json's baseUrl and paths, so you can use aliases
  2. There is a new environment variable PW_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:
npm i --save-dev @playwright/test@1.18.0
PW_EXPERIMENTAL_TS_ESM=1 npx playwright test

Create Playwright

The npm init playwright command is now generally available for your use:

# Run from your project's root directory
npm init playwright
# Or create a new project
npm init playwright new-project

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

  • new [testCase.repeatEachIndex] API
  • new [option fixtures]
  • [acceptDownloads] option now defaults to true

Browser Versions

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [playwright](https://github.com/Microsoft/playwright) from 1.17.2 to 1.18.0.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](microsoft/playwright@v1.17.2...v1.18.0)

---
updated-dependencies:
- dependency-name: playwright
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from remusao as a code owner January 21, 2022 04:31
@dependabot dependabot bot added the PR: Dependencies 🔩 Changes only update dependencies label Jan 21, 2022
@remusao remusao merged commit ed45c2e into master Jan 21, 2022
@remusao remusao deleted the dependabot/npm_and_yarn/playwright-1.18.0 branch January 21, 2022 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Dependencies 🔩 Changes only update dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant