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

fix(deps): update playwright dependencies to v1.42.1 #2257

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 27, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@playwright/experimental-ct-react17 (source) 1.41.2 -> 1.42.1 age adoption passing confidence
@playwright/test (source) 1.41.2 -> 1.42.1 age adoption passing confidence
playwright (source) 1.41.2 -> 1.42.1 age adoption passing confidence
playwright-core (source) 1.41.2 -> 1.42.1 age adoption passing confidence

Release Notes

microsoft/playwright (@​playwright/experimental-ct-react17)

v1.42.1

Compare Source

Highlights

https://github.com/microsoft/playwright/issues/29732 - [Regression]: HEAD requests to webServer.url since v1.42.0https://github.com/microsoft/playwright/issues/297466 - [Regression]: Playwright CT CLI scripts fail due to broken initializePlugin imporhttps://github.com/microsoft/playwright/issues/2973939 - [Bug]: Component tests fails when imported a module with a dot in a nahttps://github.com/microsoft/playwright/issues/29731731 - [Regression]: 1.42.0 breaks some import statemehttps://github.com/microsoft/playwright/issues/297609760 - [Bug]: Possible regression with chained locators in v1.42

Browser Versions
  • Chromium 123.0.6312.4
  • Mozilla Firefox 123.0
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 122
  • Microsoft Edge 123

v1.42.0

Compare Source

New APIs

  • New method page.addLocatorHandler() registers a callback that will be invoked when specified element becomes visible and may block Playwright actions. The callback can get rid of the overlay. Here is an example that closes a cookie dialog when it appears:
// Setup the handler.
await page.addLocatorHandler(
    page.getByRole('heading', { name: 'Hej! You are in control of your cookies.' }),
    async () => {
      await page.getByRole('button', { name: 'Accept all' }).click();
    });
// Write the test as usual.
await page.goto('https://www.ikea.com/');
await page.getByRole('link', { name: 'Collection of blue and white' }).click();
await expect(page.getByRole('heading', { name: 'Light and easy' })).toBeVisible();
electronApp.on('console', async msg => {
  const values = [];
  for (const arg of msg.args())
    values.push(await arg.jsonValue());
  console.log(...values);
});
await electronApp.evaluate(() => console.log('hello', 5, { foo: 'bar' }));
  • New syntax for adding tags to the tests (@​-tokens in the test title are still supported):
test('test customer login', {
  tag: ['@​fast', '@​login'],
}, async ({ page }) => {
  // ...
});

Use --grep command line option to run only tests with certain tags.

npx playwright test --grep @​fast
  • --project command line flag now supports '*' wildcard:
npx playwright test --project='*mobile*'
test('test full report', {
  annotation: [
    { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23180' },
    { type: 'docs', description: 'https://playwright.dev/docs/test-annotations#tag-tests' },
  ],
}, async ({ page }) => {
  // ...
});

Announcements

  • ⚠️ Ubuntu 18 is not supported anymore.

Browser Versions

  • Chromium 123.0.6312.4
  • Mozilla Firefox 123.0
  • WebKit 17.4

This version was also tested against the following stable channels:

  • Google Chrome 122
  • Microsoft Edge 123

Configuration

📅 Schedule: Branch creation - "after 3am,before 9am" (UTC), Automerge - 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 these updates again.


  • If you want to rebase/retry this PR, check this box

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

@renovate renovate bot added @serenity-js/playwright @serenity-js/web Screenplay Pattern APIs for interacting with the Web labels Feb 27, 2024
@jan-molak jan-molak self-assigned this Feb 29, 2024
@renovate renovate bot force-pushed the renovate/playwright-dependencies branch from d7f4145 to 0058448 Compare February 29, 2024 17:23
@jan-molak
Copy link
Member

Blocked by microsoft/playwright#29746, to be fixed by microsoft/playwright#29748 in Playwright 1.42.1

@jan-molak jan-molak removed their assignment Mar 1, 2024
@renovate renovate bot force-pushed the renovate/playwright-dependencies branch 2 times, most recently from f48a6ad to 5e89cc6 Compare March 1, 2024 16:12
@renovate renovate bot force-pushed the renovate/playwright-dependencies branch from 5e89cc6 to dc20ed5 Compare March 2, 2024 01:19
@renovate renovate bot changed the title fix(deps): update playwright dependencies to v1.42.0 fix(deps): update playwright dependencies to v1.42.1 Mar 2, 2024
@jan-molak jan-molak removed the blocked label Mar 2, 2024
@jan-molak jan-molak self-assigned this Mar 2, 2024
@jan-molak jan-molak merged commit 94fac7b into main Mar 2, 2024
3 checks passed
@jan-molak jan-molak deleted the renovate/playwright-dependencies branch March 2, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@serenity-js/playwright @serenity-js/web Screenplay Pattern APIs for interacting with the Web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant