18.md (7911B)
1 # PR #18 Bump @playwright/test from 1.17.1 to 1.18.0 2 3 - **Status:** merged 4 - **Author:** @dependabot[bot] 5 - **Created:** 2022-01-20T21:34:22Z 6 - **Branch:** dependabot/npm_and_yarn/playwright/test-1.18.0 → main 7 - **Merged:** 2022-01-20T21:39:22Z 8 - **Labels:** dependencies, javascript 9 - **Diff:** [18.diff](./18.diff) 10 11 --- 12 13 Bumps [@playwright/test](https://github.com/Microsoft/playwright) from 1.17.1 to 1.18.0. 14 <details> 15 <summary>Release notes</summary> 16 <p><em>Sourced from <a href="https://github.com/Microsoft/playwright/releases"><code>@playwright/test</code>'s releases</a>.</em></p> 17 <blockquote> 18 <h2>v1.18.0</h2> 19 <h2>Locator Improvements</h2> 20 <ul> 21 <li>[<code>locator.dragTo(locator)</code>]</li> 22 <li>[<code>expect(locator).toBeChecked({ checked })</code>]</li> 23 <li>Each locator can now be optionally filtered by the text it contains: 24 <pre lang="js"><code>await page.locator('li', { hasText: 'my item' }).locator('button').click(); 25 </code></pre> 26 Read more in [locator documentation].</li> 27 </ul> 28 <h2>Testing API improvements</h2> 29 <ul> 30 <li>[<code>expect(response).toBeOK()</code>]</li> 31 <li>[<code>testInfo.attach()</code>]</li> 32 <li>[<code>test.info()</code>]</li> 33 </ul> 34 <h2>Improved TypeScript Support</h2> 35 <ol> 36 <li>Playwright Test now respects <code>tsconfig.json</code>'s <a href="https://www.typescriptlang.org/tsconfig#baseUrl"><code>baseUrl</code></a> and <a href="https://www.typescriptlang.org/tsconfig#paths"><code>paths</code></a>, so you can use aliases</li> 37 <li>There is a new environment variable <code>PW_EXPERIMENTAL_TS_ESM</code> that allows importing ESM modules in your TS code, without the need for the compile step. Don't forget the <code>.js</code> suffix when you are importing your esm modules. Run your tests as follows:</li> 38 </ol> 39 <pre lang="bash"><code>npm i --save-dev @playwright/test@1.18.0 40 PW_EXPERIMENTAL_TS_ESM=1 npx playwright test 41 </code></pre> 42 <h2>Create Playwright</h2> 43 <p>The <code>npm init playwright</code> command is now generally available for your use:</p> 44 <pre lang="sh"><code># Run from your project's root directory 45 npm init playwright 46 # Or create a new project 47 npm init playwright new-project 48 </code></pre> 49 <p>This will scaffold everything needed to get started with Playwright Test: configuration file, optionally add examples, a GitHub Action workflow and a first test <code>example.spec.ts</code>.</p> 50 <h2>New APIs & changes</h2> 51 <ul> 52 <li>new [<code>testCase.repeatEachIndex</code>] API</li> 53 <li>new [option fixtures]</li> 54 <li>[<code>acceptDownloads</code>] option now defaults to <code>true</code></li> 55 </ul> 56 <h2>Browser Versions</h2> 57 <!-- raw HTML omitted --> 58 </blockquote> 59 <p>... (truncated)</p> 60 </details> 61 <details> 62 <summary>Commits</summary> 63 <ul> 64 <li><a href="https://github.com/microsoft/playwright/commit/de5f5021ede9a7e78f504707e433f82b4686884b"><code>de5f502</code></a> chore: mark v1.18.0 (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/11493">#11493</a>)</li> 65 <li><a href="https://github.com/microsoft/playwright/commit/9e8530547fd3a57af53cb3b6ad8199cc2084e9ca"><code>9e85305</code></a> cherry-pick(<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/11488">#11488</a>): docs: drop cookbook reference from notes (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/11492">#11492</a>)</li> 66 <li><a href="https://github.com/microsoft/playwright/commit/acd05674f7f325218b28240c2d78142c9d9ec11f"><code>acd0567</code></a> cherry-pick(<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/11477">#11477</a>): docs: add Java 1.18 release notes (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/11491">#11491</a>)</li> 67 <li><a href="https://github.com/microsoft/playwright/commit/3226ad2ac6b1fb10dd210e8fa2250b4c5679f790"><code>3226ad2</code></a> cherry-pick(<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/11479">#11479</a>): docs: add .NET 1.18 release notes (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/11490">#11490</a>)</li> 68 <li><a href="https://github.com/microsoft/playwright/commit/32f9868164f1d2cdac0532cdf01d3cae741f5483"><code>32f9868</code></a> cherry-pick(<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/11478">#11478</a>): docs: add Python 1.18 release notes (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/11489">#11489</a>)</li> 69 <li><a href="https://github.com/microsoft/playwright/commit/3859e1425e89402fba0a3054c419776d4a34eca8"><code>3859e14</code></a> cherry-pick(<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/11481">#11481</a>): fix(webkit): improve orientation detection (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/11485">#11485</a>)</li> 70 <li><a href="https://github.com/microsoft/playwright/commit/ab2643c9e8c6a96c0b6c6097ac12b450c973611d"><code>ab2643c</code></a> cherry-pick(release-1.18): docs(python): enable tracing sources collection (#...</li> 71 <li><a href="https://github.com/microsoft/playwright/commit/c64772cf0fd6d2d0c0eb8a2f107c193173529e44"><code>c64772c</code></a> cherry-pick(release-1.18): docs(dotnet): enable collecting tracing sources (#...</li> 72 <li><a href="https://github.com/microsoft/playwright/commit/2afa271280d4a5ff1c027b856b7d6e2107b5512c"><code>2afa271</code></a> cherry-pick(release-1.18): devops: another attempt to fix docker workflow (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/1">#1</a>...</li> 73 <li><a href="https://github.com/microsoft/playwright/commit/1781c33748de51e2e7ebf98813f59a6e42927c56"><code>1781c33</code></a> cherry-pick(<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/11416">#11416</a>) devops: further enhance workflow syntax (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/11417">#11417</a>)</li> 74 <li>Additional commits viewable in <a href="https://github.com/Microsoft/playwright/compare/v1.17.1...v1.18.0">compare view</a></li> 75 </ul> 76 </details> 77 <br /> 78 79 80 [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 81 82 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`. 83 84 [//]: # (dependabot-automerge-start) 85 [//]: # (dependabot-automerge-end) 86 87 --- 88 89 <details> 90 <summary>Dependabot commands and options</summary> 91 <br /> 92 93 You can trigger Dependabot actions by commenting on this PR: 94 - `@dependabot rebase` will rebase this PR 95 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it 96 - `@dependabot merge` will merge this PR after your CI passes on it 97 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it 98 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging 99 - `@dependabot reopen` will reopen this PR if it is closed 100 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually 101 - `@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) 102 - `@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) 103 - `@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) 104 105 106 </details> 107