matrix-art.meta

Issues/PRs archive for MTRNord/matrix-art
git clone git://archive.git.mtrnord.blog/MTRNord/matrix-art.meta.git
Log | Files | Refs

98.md (9386B)


      1 # PR #98 Bump @playwright/test from 1.19.2 to 1.20.0
      2 
      3 - **Status:** merged
      4 - **Author:** @dependabot[bot]
      5 - **Created:** 2022-03-15T08:55:13Z
      6 - **Branch:** dependabot/npm_and_yarn/playwright/test-1.20.0 → main
      7 - **Merged:** 2022-03-21T21:38:24Z
      8 - **Labels:** dependencies, javascript
      9 - **Assignees:** @MTRNord
     10 - **Reviewers:** @MTRNord
     11 - **Diff:** [98.diff](./98.diff)
     12 
     13 ---
     14 
     15 Bumps [@playwright/test](https://github.com/Microsoft/playwright) from 1.19.2 to 1.20.0.
     16 <details>
     17 <summary>Release notes</summary>
     18 <p><em>Sourced from <a href="https://github.com/Microsoft/playwright/releases"><code>@​playwright/test</code>'s releases</a>.</em></p>
     19 <blockquote>
     20 <h2>v1.20.0</h2>
     21 <h2>Highlights</h2>
     22 <ul>
     23 <li>
     24 <p>New options for methods <a href="https://playwright.dev/docs/api/class-page#page-screenshot"><code>page.screenshot()</code></a>, <a href="https://playwright.dev/docs/api/class-locator#locator-screenshot"><code>locator.screenshot()</code></a> and <a href="https://playwright.dev/docs/api/class-elementhandle#element-handle-screenshot"><code>elementHandle.screenshot()</code></a>:</p>
     25 <ul>
     26 <li>Option <code>animations: &quot;disabled&quot;</code> rewinds all CSS animations and transitions to a consistent state.</li>
     27 <li>Option <code>mask: Locator[]</code> masks given elements, overlaying them with pink <code>#FF00FF</code> boxes.</li>
     28 </ul>
     29 </li>
     30 <li>
     31 <p><a href="https://playwright.dev/docs/test-assertions#screenshot-assertions-to-match-snapshot"><code>expect().toMatchSnapshot()</code></a> now supports anonymous snapshots: when snapshot name is missing, Playwright Test will generate one
     32 automatically:</p>
     33 <pre lang="js"><code>expect('Web is Awesome &lt;3').toMatchSnapshot();
     34 </code></pre>
     35 </li>
     36 <li>
     37 <p>New <code>maxDiffPixels</code> and <code>maxDiffPixelRatio</code> options for fine-grained screenshot comparison using <a href="https://playwright.dev/docs/test-assertions#screenshot-assertions-to-match-snapshot"><code>expect().toMatchSnapshot()</code></a>:</p>
     38 <pre lang="js"><code>expect(await page.screenshot()).toMatchSnapshot({
     39   maxDiffPixels: 27, // allow no more than 27 different pixels.
     40 });
     41 </code></pre>
     42 <p>It is most convenient to specify <code>maxDiffPixels</code> or <code>maxDiffPixelRatio</code> once in <a href="https://playwright.dev/docs/api/class-testconfig#test-config-expect"><code>TestConfig.expect</code></a>.</p>
     43 </li>
     44 <li>
     45 <p>Playwright Test now adds <a href="https://playwright.dev/docs/api/class-testconfig#test-config-fully-parallel"><code>TestConfig.fullyParallel</code></a> mode. By default, Playwright Test parallelizes between files. In fully parallel mode, tests inside a single file are also run in parallel. You can also use <code>--fully-parallel</code> command line flag.</p>
     46 <pre lang="ts"><code>// playwright.config.ts
     47 export default {
     48   fullyParallel: true,
     49 };
     50 </code></pre>
     51 </li>
     52 <li>
     53 <p><a href="https://playwright.dev/docs/api/class-testproject#test-project-grep"><code>TestProject.grep</code></a> and <a href="https://playwright.dev/docs/api/class-testproject#test-project-grep-invert"><code>TestProject.grepInvert</code></a> are now configurable per project. For example, you can now
     54 configure smoke tests project using <code>grep</code>:</p>
     55 <pre lang="ts"><code>// playwright.config.ts
     56 export default {
     57   projects: [
     58     {
     59       name: 'smoke tests',
     60       grep: '@smoke',
     61     },
     62   ],
     63 };
     64 </code></pre>
     65 </li>
     66 <li>
     67 <p><a href="https://playwright.dev/docs/trace-viewer">Trace Viewer</a> now shows <a href="https://playwright.dev/docs/test-api-testing">API testing requests</a>.</p>
     68 </li>
     69 <li>
     70 <p><a href="https://playwright.dev/docs/api/class-locator#locator-highlight"><code>locator.highlight()</code></a> visually reveals element(s) for easier debugging.</p>
     71 </li>
     72 </ul>
     73 <h2>Announcements</h2>
     74 <ul>
     75 <li>We now ship a designated Python docker image <code>mcr.microsoft.com/playwright/python</code>. Please switch over to it if you use Python. This is the last release that includes Python inside our javascript <code>mcr.microsoft.com/playwright</code> docker image.</li>
     76 <li>v1.20 is the last release to receive WebKit update for macOS 10.15 Catalina. Please update MacOS to keep using latest &amp; greatest WebKit!</li>
     77 </ul>
     78 <!-- raw HTML omitted -->
     79 </blockquote>
     80 <p>... (truncated)</p>
     81 </details>
     82 <details>
     83 <summary>Commits</summary>
     84 <ul>
     85 <li><a href="https://github.com/microsoft/playwright/commit/16c4ae08317b0338d5bb1b62d57b140294b7996a"><code>16c4ae0</code></a> cherry-pick(1.20): docs: fix broken release-notes links (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/12749">#12749</a>)</li>
     86 <li><a href="https://github.com/microsoft/playwright/commit/eab96de6e4dc78d925153fd630414d31832db1ef"><code>eab96de</code></a> chore: mark v1.20.0 (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/12600">#12600</a>)</li>
     87 <li><a href="https://github.com/microsoft/playwright/commit/f9ea3d53bcdbdabc306265ed91a0458551a87afc"><code>f9ea3d5</code></a> cherry-pick(<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/12596">#12596</a>): add release notes for all other languages (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/12745">#12745</a>)</li>
     88 <li><a href="https://github.com/microsoft/playwright/commit/cf1a60bce8ae7be24ea1434daa369a27211223d9"><code>cf1a60b</code></a> chore: pull <code>expect.toHaveScreenshot()</code> from 1.20 release (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/12702">#12702</a>)</li>
     89 <li><a href="https://github.com/microsoft/playwright/commit/4897967780d6c784912fec919cdb63830263797e"><code>4897967</code></a> cherry-pick(<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/12627">#12627</a>): bring back maxDiffPixels in toMatchSnapshot (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/12701">#12701</a>)</li>
     90 <li><a href="https://github.com/microsoft/playwright/commit/97bca5c43184f7346c442f1bd1bcd240e6df368a"><code>97bca5c</code></a> cherry-pick(1.20): recent assertion docs changes (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/12696">#12696</a>)</li>
     91 <li><a href="https://github.com/microsoft/playwright/commit/b72860959203fe2213b167130951d96363595202"><code>b728609</code></a> cherry-pick(1.20): fix(test-runner): ESM compatibly on Windows (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/12653">#12653</a>)</li>
     92 <li><a href="https://github.com/microsoft/playwright/commit/2531c590bc26571d1d2e635296dc4154aa9d7382"><code>2531c59</code></a> cherry-pick(1.20): add missing dependency on Ubuntu 18.04 (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/12626">#12626</a>)</li>
     93 <li><a href="https://github.com/microsoft/playwright/commit/503dc782b604dbc58a409e41950cd233bce54ccb"><code>503dc78</code></a> cherry-pick(1.20): add name for screenshot animations option (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/12608">#12608</a>)</li>
     94 <li><a href="https://github.com/microsoft/playwright/commit/84f36df41574630782bd5ce2adf10796c77a4a5d"><code>84f36df</code></a> cherry-pick(1.20): update POM guide (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/12598">#12598</a>) (<a href="https://github-redirect.dependabot.com/Microsoft/playwright/issues/12607">#12607</a>)</li>
     95 <li>Additional commits viewable in <a href="https://github.com/Microsoft/playwright/compare/v1.19.2...v1.20.0">compare view</a></li>
     96 </ul>
     97 </details>
     98 <br />
     99 
    100 
    101 [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@playwright/test&package-manager=npm_and_yarn&previous-version=1.19.2&new-version=1.20.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    102 
    103 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`.
    104 
    105 [//]: # (dependabot-automerge-start)
    106 [//]: # (dependabot-automerge-end)
    107 
    108 ---
    109 
    110 <details>
    111 <summary>Dependabot commands and options</summary>
    112 <br />
    113 
    114 You can trigger Dependabot actions by commenting on this PR:
    115 - `@dependabot rebase` will rebase this PR
    116 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
    117 - `@dependabot merge` will merge this PR after your CI passes on it
    118 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
    119 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging
    120 - `@dependabot reopen` will reopen this PR if it is closed
    121 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    122 - `@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)
    123 - `@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)
    124 - `@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)
    125 
    126 
    127 </details>
    128