Skip to content

Commit 58d6dae

Browse files
dependabot[bot]liamdebeasiIonitron
authored
chore(deps-dev): Bump @playwright/test from 1.33.0 to 1.34.1 in /core (#27533)
Bumps [@playwright/test](https://github.com/Microsoft/playwright) from 1.33.0 to 1.34.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/Microsoft/playwright/releases"><code>@​playwright/test</code>'s releases</a>.</em></p> <blockquote> <h2>v1.34.0</h2> <h3>Highlights</h3> <ul> <li> <p>UI Mode now shows steps, fixtures and attachments: <!-- raw HTML omitted --></p> </li> <li> <p>New property <a href="https://playwright.dev/docs/api/class-testproject#test-project-teardown"><code>testProject.teardown</code></a> to specify a project that needs to run after this and all dependent projects have finished. Teardown is useful to cleanup any resources acquired by this project.</p> <p>A common pattern would be a <code>setup</code> dependency with a corresponding <code>teardown</code>:</p> <pre lang="js"><code>// playwright.config.ts import { defineConfig } from '@playwright/test'; <p>export default defineConfig({ projects: [ { name: 'setup', testMatch: /global.setup.ts/, teardown: 'teardown', }, { name: 'teardown', testMatch: /global.teardown.ts/, }, { name: 'chromium', use: devices['Desktop Chrome'], dependencies: ['setup'], }, { name: 'firefox', use: devices['Desktop Firefox'], dependencies: ['setup'], }, { name: 'webkit', use: devices['Desktop Safari'], dependencies: ['setup'], }, ], }); </code></pre></p> </li> <li> <p>New method <a href="https://playwright.dev/docs/test-assertions#expectconfigure"><code>expect.configure</code></a> to create pre-configured expect instance with its own defaults such as <code>timeout</code> and <code>soft</code>.</p> <pre lang="js"><code>const slowExpect = expect.configure({ timeout: 10000 }); await slowExpect(locator).toHaveText('Submit'); <p>// Always do soft assertions. const softExpect = expect.configure({ soft: true }); </code></pre></p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/microsoft/playwright/commit/4aee014caf4d5f14700a18dfc25014812e1f4414"><code>4aee014</code></a> chore: mark 1.34.0 (<a href="https://github.com/Microsoft/playwright/issues/23123">#23123</a>)</li> <li><a href="https://github.com/microsoft/playwright/commit/bf25a936175765c89bf9e0e241c0816995e6e025"><code>bf25a93</code></a> cherry-pick(<a href="https://github.com/Microsoft/playwright/issues/23171">#23171</a>): fix(tracing): when zipping remotely, use correct file na...</li> <li><a href="https://github.com/microsoft/playwright/commit/7effaf4f22fc658833e608415634185a43f7e535"><code>7effaf4</code></a> cherry-pick(<a href="https://github.com/Microsoft/playwright/issues/23166">#23166</a>): chore: fix file view padding</li> <li><a href="https://github.com/microsoft/playwright/commit/ef18287266b0a9131c70dd552964884c6af682ec"><code>ef18287</code></a> cherry-pick(<a href="https://github.com/Microsoft/playwright/issues/23165">#23165</a>): docs: update release notes</li> <li><a href="https://github.com/microsoft/playwright/commit/552cba8c05b1750dea5fea84072dfdf7405545f1"><code>552cba8</code></a> cherry-pick(<a href="https://github.com/Microsoft/playwright/issues/23148">#23148</a>): chore: do not annotate actions after failed ones as time...</li> <li><a href="https://github.com/microsoft/playwright/commit/cd94a3f01dd9693a167a5f66a4096e7ca58bd879"><code>cd94a3f</code></a> cherry-pick(<a href="https://github.com/Microsoft/playwright/issues/23144">#23144</a>): feat(connect): <code>pw:server:channel</code> and <code>pw:socks</code> debug ...</li> <li><a href="https://github.com/microsoft/playwright/commit/3543a741fdf67cf14f2457c5058ef03691c3036e"><code>3543a74</code></a> cherry-pick(<a href="https://github.com/Microsoft/playwright/issues/23140">#23140</a>): docs: add dialog/consoleMessage helper methods for langu...</li> <li><a href="https://github.com/microsoft/playwright/commit/7196f82e52571d177f0956cb2913add007a52dbf"><code>7196f82</code></a> cherry-pick(<a href="https://github.com/Microsoft/playwright/issues/23143">#23143</a>): test: add attachment tests</li> <li><a href="https://github.com/microsoft/playwright/commit/32c247b81556e6af9b2023438dc4628caa249c8f"><code>32c247b</code></a> cherry-pick(<a href="https://github.com/Microsoft/playwright/issues/23139">#23139</a>): chore: opt out of trace attachments</li> <li><a href="https://github.com/microsoft/playwright/commit/c551cce74e47a124cf8ad7f79cda3ade7ac88a45"><code>c551cce</code></a> cherry-pick(<a href="https://github.com/Microsoft/playwright/issues/23130">#23130</a>): feat(chromium): roll to r1064 (<a href="https://github.com/Microsoft/playwright/issues/23132">#23132</a>)</li> <li>Additional commits viewable in <a href="https://github.com/Microsoft/playwright/compare/v1.33.0...v1.34.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@playwright/test&package-manager=npm_and_yarn&previous-version=1.33.0&new-version=1.34.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Liam DeBeasi <[email protected]> Co-authored-by: ionitron <[email protected]>
1 parent e54bf14 commit 58d6dae

File tree

157 files changed

+28
-32
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+28
-32
lines changed

core/package-lock.json

+23-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@ionic/eslint-config": "^0.3.0",
4141
"@ionic/prettier-config": "^2.0.0",
4242
"@jest/core": "^27.5.1",
43-
"@playwright/test": "^1.33.0",
43+
"@playwright/test": "^1.34.1",
4444
"@rollup/plugin-node-resolve": "^8.4.0",
4545
"@rollup/plugin-virtual": "^2.0.3",
4646
"@stencil/angular-output-target": "^0.7.0",

core/src/components/modal/test/card-scroll-target/modal.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
1515
await ionModalDidPresent.next();
1616

1717
const content = page.locator('ion-modal .ion-content-scroll-host');
18-
await dragElementBy(content, page, 0, 500);
18+
await dragElementBy(content, page, 0, 300);
1919

2020
await ionModalDidDismiss.next();
2121
});

core/src/components/modal/test/fixtures.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class CardModalPage {
2222
return this.page.locator('ion-modal');
2323
}
2424

25-
async swipeToCloseModal(selector: string, waitForDismiss = true, swipeY = 500) {
25+
async swipeToCloseModal(selector: string, waitForDismiss = true, swipeY = 300) {
2626
const { page } = this;
2727
const elementRef = page.locator(selector);
2828
await dragElementBy(elementRef, page, 0, swipeY);

core/src/components/modal/test/sheet/modal.e2e.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
129129
const ionBreakpointDidChange = await page.spyOnEvent('ionBreakpointDidChange');
130130
const header = page.locator('.modal-sheet ion-header');
131131

132-
await dragElementBy(header, page, 0, 500);
132+
await dragElementBy(header, page, 0, 150);
133133

134134
await ionBreakpointDidChange.next();
135135

core/src/utils/test/playwright/drag-element.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,13 @@ export const dragElementBy = async (
2121
const startX = startXCoord === undefined ? boundingBox.x + boundingBox.width / 2 : startXCoord;
2222
const startY = startYCoord === undefined ? boundingBox.y + boundingBox.height / 2 : startYCoord;
2323

24-
const midX = startX + dragByX / 2;
25-
const midY = startY + dragByY / 2;
26-
2724
const endX = startX + dragByX;
2825
const endY = startY + dragByY;
2926

3027
await page.mouse.move(startX, startY);
3128
await page.mouse.down();
3229

33-
await page.mouse.move(midX, midY);
34-
await page.mouse.move(endX, endY);
30+
await page.mouse.move(endX, endY, { steps: 10 });
3531
await page.mouse.up();
3632
};
3733

0 commit comments

Comments
 (0)