191.json (7942B)
1 { 2 "number": 191, 3 "title": "Bump @playwright/test from 1.21.0 to 1.22.0", 4 "state": "closed", 5 "diff_file": "191.diff", 6 "author": "dependabot[bot]", 7 "created_at": "2022-05-13T08:35:15Z", 8 "closed_at": "2022-05-18T08:28:25Z", 9 "merged_at": null, 10 "base_ref": "main", 11 "head_ref": "dependabot/npm_and_yarn/playwright/test-1.22.0", 12 "labels": [ 13 "dependencies", 14 "javascript" 15 ], 16 "assignees": [ 17 "MTRNord" 18 ], 19 "requested_reviewers": [ 20 "MTRNord" 21 ], 22 "body": "Bumps [@playwright/test](https://github.com/Microsoft/playwright) from 1.21.0 to 1.22.0.\n<details>\n<summary>Release notes</summary>\n<p><em>Sourced from <a href=\"https://github.com/Microsoft/playwright/releases\"><code>@\u200bplaywright/test</code>'s releases</a>.</em></p>\n<blockquote>\n<h2>v1.22.0</h2>\n<h2>Introducing Component Testing (preview)</h2>\n<p>Playwright Test can now test your <a href=\"https://reactjs.org/\">React</a>, <a href=\"https://vuejs.org/\">Vue.js</a> or <a href=\"https://svelte.dev/\">Svelte</a> components. You can use all the features of Playwright Test (such as parallelization, emulation & debugging) while running components in real browsers.</p>\n<p>Here is what a typical component test looks like:</p>\n<pre lang=\"tsx\"><code>// App.spec.tsx\nimport { test, expect } from '@playwright/experimental-ct-react';\nimport App from './App';\n<p>// Let's test component in a dark scheme!\ntest.use({ colorScheme: 'dark' });</p>\n<p>test('should render', async ({ mount }) => {\nconst component = await mount(<App></App>);</p>\n<p>// As with any Playwright test, assert locator text.\nawait expect(component).toContainText('React');\n// Or do a screenshot \ud83d\ude80\nawait expect(component).toHaveScreenshot();\n// Or use any Playwright method\nawait component.click();\n});\n</code></pre></p>\n<p>Read more in <a href=\"https://playwright.dev/docs/test-components\">our documentation</a>.</p>\n<h2>Locators Update</h2>\n<ul>\n<li>\n<p>Role selectors allow selecting elements by their <a href=\"https://www.w3.org/TR/wai-aria-1.2/#roles\">ARIA role</a>, <a href=\"https://www.w3.org/TR/wai-aria-1.2/#aria-attributes\">ARIA attributes</a> and <a href=\"https://w3c.github.io/accname/#dfn-accessible-name\">accessible name</a>.</p>\n<pre lang=\"ts\"><code>// Click a button with accessible name "log in"\nawait page.click('role=button[name="log in"]')\n</code></pre>\n<p>Read more in <a href=\"https://playwright.dev/docs/selectors#role-selector\">our documentation</a>.</p>\n</li>\n<li>\n<p>New <a href=\"https://playwright.dev/docs/api/class-locator#locator-filter\"><code>locator.filter([options])</code></a> API to filter an existing locator</p>\n<pre lang=\"ts\"><code>const buttons = page.locator('role=button');\n// ...\nconst submitButton = buttons.filter({ hasText: 'Submit' });\nawait submitButton.click();\n</code></pre>\n</li>\n</ul>\n<h2>Screenshots Update</h2>\n<!-- raw HTML omitted -->\n</blockquote>\n<p>... (truncated)</p>\n</details>\n<details>\n<summary>Commits</summary>\n<ul>\n<li><a href=\"https://github.com/microsoft/playwright/commit/9177bd1614f9b76dafce7be64566916baee57597\"><code>9177bd1</code></a> chore: mark v1.22.0 (<a href=\"https://github-redirect.dependabot.com/Microsoft/playwright/issues/14131\">#14131</a>)</li>\n<li><a href=\"https://github.com/microsoft/playwright/commit/5268dd7196ddcd429b5f0f165b69778b23e84af9\"><code>5268dd7</code></a> docs: add release notes for 1.22 (<a href=\"https://github-redirect.dependabot.com/Microsoft/playwright/issues/14100\">#14100</a>)</li>\n<li><a href=\"https://github.com/microsoft/playwright/commit/f6712ec43ae7b5f049311d72372dfd676546e968\"><code>f6712ec</code></a> fix(tracing): workaround chromium scrollTop slowness (<a href=\"https://github-redirect.dependabot.com/Microsoft/playwright/issues/14114\">#14114</a>)</li>\n<li><a href=\"https://github.com/microsoft/playwright/commit/0e2855348cba314de3484364eb926626ca97fbd2\"><code>0e28553</code></a> feat(locators): remove layout locators (<a href=\"https://github-redirect.dependabot.com/Microsoft/playwright/issues/14129\">#14129</a>)</li>\n<li><a href=\"https://github.com/microsoft/playwright/commit/83d82fa466cfbea401bad9af71999b118b2604c1\"><code>83d82fa</code></a> test: make "outerWidth and outerHeight" test work on small screens (<a href=\"https://github-redirect.dependabot.com/Microsoft/playwright/issues/14124\">#14124</a>)</li>\n<li><a href=\"https://github.com/microsoft/playwright/commit/f562058805a5238f251c81596fcba604bf4cf1aa\"><code>f562058</code></a> test: make wheel event work on different host dsf (<a href=\"https://github-redirect.dependabot.com/Microsoft/playwright/issues/14123\">#14123</a>)</li>\n<li><a href=\"https://github.com/microsoft/playwright/commit/c5face5ecc7197d63df90ccdfad0e42830945e8b\"><code>c5face5</code></a> test: add more chromium-tip-of-tree bots (<a href=\"https://github-redirect.dependabot.com/Microsoft/playwright/issues/14120\">#14120</a>)</li>\n<li><a href=\"https://github.com/microsoft/playwright/commit/7cad1df28b5d0e0f62998ab203bacef83c9fd2e8\"><code>7cad1df</code></a> browser(chromium-tip-of-tree): roll to 2022-May-12 (<a href=\"https://github-redirect.dependabot.com/Microsoft/playwright/issues/14116\">#14116</a>)</li>\n<li><a href=\"https://github.com/microsoft/playwright/commit/28cd3a1c5efbb7b772e2fbd4552450d0b456ceb4\"><code>28cd3a1</code></a> test: rebaseline wheel tests according to new chromium (<a href=\"https://github-redirect.dependabot.com/Microsoft/playwright/issues/14110\">#14110</a>)</li>\n<li><a href=\"https://github.com/microsoft/playwright/commit/729e41b3aa7aa67244c6e4eb8195a328034913d7\"><code>729e41b</code></a> docs: component testing npm nit</li>\n<li>Additional commits viewable in <a href=\"https://github.com/Microsoft/playwright/compare/v1.21.0...v1.22.0\">compare view</a></li>\n</ul>\n</details>\n<br />\n\n\n[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\n\nDependabot 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`.\n\n[//]: # (dependabot-automerge-start)\n[//]: # (dependabot-automerge-end)\n\n---\n\n<details>\n<summary>Dependabot commands and options</summary>\n<br />\n\nYou can trigger Dependabot actions by commenting on this PR:\n- `@dependabot rebase` will rebase this PR\n- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it\n- `@dependabot merge` will merge this PR after your CI passes on it\n- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it\n- `@dependabot cancel merge` will cancel a previously requested merge and block automerging\n- `@dependabot reopen` will reopen this PR if it is closed\n- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually\n- `@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)\n- `@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)\n- `@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)\n\n\n</details>", 23 "comments": [ 24 { 25 "author": "dependabot[bot]", 26 "created_at": "2022-05-18T08:28:24Z", 27 "body": "Superseded by #197." 28 } 29 ], 30 "review_comments": [] 31 }