jackson
jackson copied to clipboard
Bump @playwright/test from 1.41.2 to 1.42.0
Bumps @playwright/test from 1.41.2 to 1.42.0.
Release notes
Sourced from @​playwright/test's releases.
v1.42.0
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();
expect(callback).toPass()timeout can now be configured byexpect.toPass.timeoutoption globally or in project config- electronApplication.on('console') event is emitted when Electron main process calls console API methods.
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
--grepcommand line option to run only tests with certain tags.npx playwright test --grep @fast
--projectcommand line flag now supports '*' wildcard:npx playwright test --project='*mobile*' </tr></table>
... (truncated)
Commits
e7f0635cherry-pick(#29692): docs: better addLocatorHandler example in release notes ...8709a3acherry-pick(#29687): chore: fix docs roll for functions without args follow-u...aa9f6fbcherry-pick(#29669): chore: strengthen linting (#29674)f5899c1chore: set version to 1.42.0 (#29671)77e1b02docs: 1.42 release notes (#29666)c1421bcdocs: typescript compiler invocation before tests (#29667)bd8d044feat(uimode) uses relative paths to establish websocket connection (#29617)5602826devops: add a hint how to create a repro (#29665)015a1bcfeat(ct): double unmounting component throws error (#29650)303d7fdchore(ct): vue resolve internal type errors (#29649)- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
@dependabot rebase
@dependabot rebase
Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!
If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.
@dependabot recreate
@dependabot rebase
@dependabot rebase
Superseded by #2376.