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

Update dependency @playwright/test to v1.27.0 #865

Merged
merged 1 commit into from
Oct 7, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 7, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@playwright/test (source) 1.26.1 -> 1.27.0 age adoption passing confidence

Release Notes

Microsoft/playwright

v1.27.0

Compare Source

Locators

With these new APIs, inspired by Testing Library, writing locators is a joy:

await page.getByLabel('User Name').fill('John');

await page.getByLabel('Password').fill('secret-password');

await page.getByRole('button', { name: 'Sign in' }).click();

await expect(page.getByText('Welcome, John!')).toBeVisible();

All the same methods are also available on Locator, FrameLocator and Frame classes.

Other highlights
  • workers option in the playwright.config.ts now accepts a percentage string to use some of the available CPUs. You can also pass it in the command line:

    npx playwright test --workers=20%
  • New options host and port for the html reporter.

    reporters: [['html', { host: 'localhost', port: '9223' }]]
  • New field FullConfig.configFile is available to test reporters, specifying the path to the config file if any.

  • As announced in v1.25, Ubuntu 18 will not be supported as of Dec 2022. In addition to that, there will be no WebKit updates on Ubuntu 18 starting from the next Playwright release.

Behavior Changes
  • expect(locator).toHaveAttribute(name, value, options) with an empty value does not match missing attribute anymore. For example, the following snippet will succeed when button does not have a disabled attribute.

    await expect(page.getByRole('button')).toHaveAttribute('disabled', '');
  • Command line options --grep and --grep-invert previously incorrectly ignored grep and grepInvert options specified in the config. Now all of them are applied together.

Browser Versions
  • Chromium 107.0.5304.18
  • Mozilla Firefox 105.0.1
  • WebKit 16.0

This version was also tested against the following stable channels:

  • Google Chrome 106
  • Microsoft Edge 106

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot enabled auto-merge (squash) October 7, 2022 21:50
@renovate renovate bot merged commit 9722b89 into master Oct 7, 2022
@renovate renovate bot deleted the renovate/playwright-monorepo branch October 7, 2022 23:01
Noxsios pushed a commit that referenced this pull request Mar 8, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@playwright/test](https://playwright.dev)
([source](https://togithub.com/Microsoft/playwright)) | [`1.26.1` ->
`1.27.0`](https://renovatebot.com/diffs/npm/@playwright%2ftest/1.26.1/1.27.0)
|
[![age](https://badges.renovateapi.com/packages/npm/@playwright%2ftest/1.27.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@playwright%2ftest/1.27.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@playwright%2ftest/1.27.0/compatibility-slim/1.26.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@playwright%2ftest/1.27.0/confidence-slim/1.26.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>Microsoft/playwright</summary>

###
[`v1.27.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.27.0)

[Compare
Source](https://togithub.com/Microsoft/playwright/compare/v1.26.1...v1.27.0)

##### Locators

With these new APIs, inspired by [Testing
Library](https://testing-library.com/), writing locators is a joy:

- [`page.getByText(text,
options)`](https://playwright.dev/docs/api/class-page#page-get-by-text)
to locate by text content.
- [`page.getByRole(role,
options)`](https://playwright.dev/docs/api/class-page#page-get-by-role)
to locate by [ARIA role](https://www.w3.org/TR/wai-aria-1.2/#roles),
[ARIA attributes](https://www.w3.org/TR/wai-aria-1.2/#aria-attributes)
and [accessible
name](https://w3c.github.io/accname/#dfn-accessible-name).
- [`page.getByLabel(label,
options)`](https://playwright.dev/docs/api/class-page#page-get-by-label)
to locate a form control by associated label's text.
- [`page.getByPlaceholder(placeholder,
options)`](https://playwright.dev/docs/api/class-page#page-get-by-placeholder)
to locate an input by placeholder.
- [`page.getByAltText(altText,
options)`](https://playwright.dev/docs/api/class-page#page-get-by-alt-text)
to locate an element, usually image, by its text alternative.
- [`page.getByTitle(title,
options)`](https://playwright.dev/docs/api/class-page#page-get-by-title)
to locate an element by its title.

```js
await page.getByLabel('User Name').fill('John');

await page.getByLabel('Password').fill('secret-password');

await page.getByRole('button', { name: 'Sign in' }).click();

await expect(page.getByText('Welcome, John!')).toBeVisible();
```

All the same methods are also available on
[Locator](https://playwright.dev/docs/api/class-locator),
[FrameLocator](https://playwright.dev/docs/api/class-framelocator) and
[Frame](https://playwright.dev/docs/api/class-frame) classes.

##### Other highlights

- `workers` option in the `playwright.config.ts` now accepts a
percentage string to use some of the available CPUs. You can also pass
it in the command line:
    ```bash
    npx playwright test --workers=20%
    ```

-   New options `host` and `port` for the html reporter.
    ```js
    reporters: [['html', { host: 'localhost', port: '9223' }]]
    ```

- New field `FullConfig.configFile` is available to test reporters,
specifying the path to the config file if any.

- As announced in v1.25, Ubuntu 18 will not be supported as of Dec 2022.
In addition to that, there will be no WebKit updates on Ubuntu 18
starting from the next Playwright release.

##### Behavior Changes

- [`expect(locator).toHaveAttribute(name, value,
options)`](https://playwright.dev/docs/test-assertions#locator-assertions-to-have-attribute)
with an empty value does not match missing attribute anymore. For
example, the following snippet will succeed when `button` **does not**
have a `disabled` attribute.

    ```js
await expect(page.getByRole('button')).toHaveAttribute('disabled', '');
    ```

- Command line options `--grep` and `--grep-invert` previously
incorrectly ignored `grep` and `grepInvert` options specified in the
config. Now all of them are applied together.

##### Browser Versions

-   Chromium 107.0.5304.18
-   Mozilla Firefox 105.0.1
-   WebKit 16.0

This version was also tested against the following stable channels:

-   Google Chrome 106
-   Microsoft Edge 106

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click
this checkbox.

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/defenseunicorns/zarf).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMjIuMyIsInVwZGF0ZWRJblZlciI6IjMyLjIyMi4zIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant