Packages

@playwright/experimental-ct-vue2

1.48.2 · 25 Oct 2024Apache-2.013.2k / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.What to use instead
Your version

66 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 1.48.2

    25 Oct 2024
    • Chromium 130.0.6723.19

    • Mozilla Firefox 130.0

    • WebKit 18.0

  2. 1.48.1

    16 Oct 2024
    • Chromium 130.0.6723.19

    • Mozilla Firefox 130.0

    • WebKit 18.0

  3. 1.48.0

    8 Oct 2024
    • New "copy" buttons for annotations and test location in the HTML report.

    • Route method calls like route.fulfill() are not shown in the report and trace viewer anymore. You can see which network requests were routed in the network tab instead.

    • New "Copy as cURL" and "Copy as fetch" buttons for requests in the network tab.

  4. 1.47.2

    20 Sep 2024
    • Chromium 129.0.6668.29

    • Mozilla Firefox 130.0

    • WebKit 18.0

  5. 1.47.1

    13 Sep 2024
    • Chromium 129.0.6668.29

    • Mozilla Firefox 130.0

    • WebKit 18.0

  6. 1.47.0

    5 Sep 2024
    • Filtering by asset type and URL

    • Better display of query string parameters

    • Preview of font assets

  7. 1.46.1

    16 Aug 2024
    • Chromium 128.0.6613.18

    • Mozilla Firefox 128.0

    • WebKit 18.0

  8. 1.46.0

    5 Aug 2024
    • Call router.route(url, handler) that behaves similarly to page.route().

    • Call router.use(handlers) and pass MSW library request handlers to it.

    • Test annotations are now shown in UI mode.

  9. 1.45.3

    22 Jul 2024
    • Chromium 127.0.6533.5

    • Mozilla Firefox 127.0

    • WebKit 17.4

  10. 1.45.2

    16 Jul 2024
    • Chromium 127.0.6533.5

    • Mozilla Firefox 127.0

    • WebKit 17.4

  11. 1.45.1

    2 Jul 2024
    • Chromium 127.0.6533.5

    • Mozilla Firefox 127.0

    • WebKit 17.4

  12. 1.45.0

    24 Jun 2024
    • Testing with predefined time;

    • Keeping consistent time and timers;

    • Monitoring inactivity;

  13. 1.44.1

    23 May 2024
    • Chromium 125.0.6422.14

    • Mozilla Firefox 125.0.1

    • WebKit 17.4

  14. 1.44.0

    6 May 2024
    • expect(locator).toHaveAccessibleName() checks if the element has the specified accessible name:

      const locator = page.getByRole('button');
      await expect(locator).toHaveAccessibleName('Submit');
    • expect(locator).toHaveAccessibleDescription() checks if the element has the specified accessible description:

      const locator = page.getByRole('button');
      await expect(locator).toHaveAccessibleDescription('Upload a photo');
    • expect(locator).toHaveRole() checks if the element has the specified ARIA role:

      const locator = page.getByTestId('save-button');
      await expect(locator).toHaveRole('button');
  15. 1.43.1

    12 Apr 2024
    • Chromium 124.0.6367.29

    • Mozilla Firefox 124.0

    • WebKit 17.4

  16. 1.43.0

    4 Apr 2024
    • Method browserContext.clearCookies() now supports filters to remove only some cookies.

      // Clear all cookies.
      await context.clearCookies();
      // New: clear cookies with a particular name.
      await context.clearCookies({ name: 'session-id' });
      // New: clear cookies for a particular domain.
      await context.clearCookies({ domain: 'my-origin.com' });
    • New mode retain-on-first-failure for testOptions.trace. In this mode, trace is recorded for the first run of each test, but not for retires. When test run fails, the trace file is retained, otherwise it is removed.

      import { defineConfig } from '@playwright/test';
      
      export default defineConfig({
        use: {
          trace: 'retain-on-first-failure',
        },
      });
    • New property testInfo.tags exposes test tags during test execution.

      test('example', async ({ page }) => {
        console.log(test.info().tags);
      });
  17. 1.42.1

    2 Mar 2024
    • Chromium 123.0.6312.4

    • Mozilla Firefox 123.0

    • WebKit 17.4

  18. 1.42.0

    27 Feb 2024
    • Breaking

      ⚠️ Ubuntu 18 is not supported anymore.

    • Test tags

      New tag 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 --grep command line option to run only tests with certain tags.

      npx playwright test --grep @fast
    • Annotating skipped tests

      New annotation syntax for test annotations allows annotating the tests that do not run.

      test('test full report', {
        annotation: [
          { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23180' },
          { type: 'docs', description: 'https://playwright.dev/docs/test-annotations#tag-tests' },
        ],
      }, async ({ page }) => {
        // ...
      });
  19. 1.41.2

    1 Feb 2024
    • Chromium 121.0.6167.57

    • Mozilla Firefox 121.0

    • WebKit 17.4

  20. 1.41.1

    19 Jan 2024
    • Chromium 121.0.6167.57

    • Mozilla Firefox 121.0

    • WebKit 17.4

  21. 1.41.0

    16 Jan 2024
  22. 1.40.1

    28 Nov 2023
    • Chromium 120.0.6099.28

    • Mozilla Firefox 119.0

    • WebKit 17.4

  23. 1.40.0

    16 Nov 2023
  24. 1.39.0

    11 Oct 2023
  25. 1.38.1

    21 Sep 2023
    • Chromium 117.0.5938.62

    • Mozilla Firefox 117.0

    • WebKit 17.0

  26. 1.38.0

    13 Sep 2023
  27. 1.37.1

    17 Aug 2023
    • Chromium 116.0.5845.82

    • Mozilla Firefox 115.0

    • WebKit 17.0

  28. 1.37.0

    10 Aug 2023
    • Adding a new "blob" reporter to the config when running on CI:

      export default defineConfig({
        testDir: './tests',
        reporter: process.env.CI ? 'blob' : 'html',
      });

      The "blob" reporter will produce ".zip" files that contain all the information
      about the test run.

    • Copying all "blob" reports in a single shared location and running npx playwright merge-reports:

      npx playwright merge-reports --reporter html ./all-blob-reports
    • UI Mode now respects project dependencies. You can control which dependencies to respect by checking/unchecking them in a projects list.

  29. 1.36.2

    25 Jul 2023
    • Chromium 115.0.5790.75

    • Mozilla Firefox 115.0

    • WebKit 17.0

  30. 1.36.1

    14 Jul 2023
    • Chromium 115.0.5790.75

    • Mozilla Firefox 115.0

    • WebKit 17.0

  31. 1.36.0

    11 Jul 2023
    • Chromium 115.0.5790.75

    • Mozilla Firefox 115.0

    • WebKit 17.0

  32. 1.35.1

    15 Jun 2023
    • Chromium 115.0.5790.13

    • Mozilla Firefox 113.0

    • WebKit 16.4

  33. 1.35.0

    8 Jun 2023
    • Breaking

      playwright-core binary got renamed from playwright to playwright-core. So if you use playwright-core CLI, make sure to update the name:

      $ npx playwright-core install # the new way to install browsers when using playwright-core

      This change does not affect @playwright/test and playwright package users.

    • UI mode is now available in VSCode Playwright extension via a new "Show trace viewer" button:

      Playwright UI Mode

    • UI mode and trace viewer mark network requests handled with page.route() and browserContext.route() handlers, as well as those issued via the API testing:

      Trace Viewer

  34. 1.34.3

    25 May 2023
    • Chromium 114.0.5735.26

    • Mozilla Firefox 113.0

    • WebKit 16.4

  35. 1.34.2

    23 May 2023
    • Chromium 114.0.5735.26

    • Mozilla Firefox 113.0

    • WebKit 16.4

  36. 1.34.1

    23 May 2023
    • Chromium 114.0.5735.26

    • Mozilla Firefox 113.0

    • WebKit 16.4

  37. 1.34.0

    20 May 2023
    • Breaking

      npx playwright test no longer works if you install both playwright and @playwright/test. There's no need
      to install both, since you can always import browser automation APIs from @playwright/test directly:

      // automation.ts
      import { chromium, firefox, webkit } from '@playwright/test';
      /* ... */
    • Breaking

      Node.js 14 is no longer supported since it reached its end-of-life on April 30, 2023.

    • UI Mode now shows steps, fixtures and attachments:

  38. 1.33.0

    27 Apr 2023
    • Breaking

      The mcr.microsoft.com/playwright:v1.33.0 now serves a Playwright image based on Ubuntu Jammy.
      To use the focal-based image, please use mcr.microsoft.com/playwright:v1.33.0-focal instead.

    • Use locator.or() to create a locator that matches either of the two locators.
      Consider a scenario where you'd like to click on a "New email" button, but sometimes a security settings dialog shows up instead.
      In this case, you can wait for either a "New email" button, or a dialog and act accordingly:

      const newEmail = page.getByRole('button', { name: 'New' });
      const dialog = page.getByText('Confirm security settings');
      await expect(newEmail.or(dialog)).toBeVisible();
      if (await dialog.isVisible())
        await page.getByRole('button', { name: 'Dismiss' }).click();
      await newEmail.click();
    • Use new options hasNot and hasNotText in locator.filter()
      to find elements that do not match certain conditions.

      const rowLocator = page.locator('tr');
      await rowLocator
          .filter({ hasNotText: 'text in column 1' })
          .filter({ hasNot: page.getByRole('button', { name: 'column 2 button' }) })
          .screenshot();
  39. 1.32.3

    11 Apr 2023
    • Chromium 112.0.5615.29

    • Mozilla Firefox 111.0

    • WebKit 16.4

  40. 1.32.2

    3 Apr 2023
    • Chromium 112.0.5615.29

    • Mozilla Firefox 111.0

    • WebKit 16.4

  41. 1.32.1

    25 Mar 2023
    • Chromium 112.0.5615.29

    • Mozilla Firefox 111.0

    • WebKit 16.4

  42. 1.32.0

    22 Mar 2023
  43. 1.31.2

    2 Mar 2023
    • Chromium 111.0.5563.19

    • Mozilla Firefox 109.0

    • WebKit 16.4

  44. 1.31.1

    23 Feb 2023
    • Chromium 111.0.5563.19

    • Mozilla Firefox 109.0

    • WebKit 16.4

  45. 1.31.0

    21 Feb 2023
    • New property TestProject.dependencies to configure dependencies between projects.

      Using dependencies allows global setup to produce traces and other artifacts,
      see the setup steps in the test report and more.

      // playwright.config.ts
      import { defineConfig } from '@playwright/test';
      
      export default defineConfig({
        projects: [
          {
            name: 'setup',
            testMatch: /global.setup\.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'],
          },
        ],
      });
    • New assertion expect(locator).toBeInViewport() ensures that locator points to an element that intersects viewport, according to the intersection observer API.

      const button = page.getByRole('button');
      
      // Make sure at least some part of element intersects viewport.
      await expect(button).toBeInViewport();
      
      // Make sure element is fully outside of viewport.
      await expect(button).not.toBeInViewport();
      
      // Make sure that at least half of the element intersects viewport.
      await expect(button).toBeInViewport({ ratio: 0.5 });
    • New method defineConfig to be used in playwright.config.

  46. 1.30.0

    25 Jan 2023
    • Chromium 110.0.5481.38

    • Mozilla Firefox 108.0.2

    • WebKit 16.4

  47. 1.29.2

    6 Jan 2023
    • Chromium 109.0.5414.46

    • Mozilla Firefox 107.0

    • WebKit 16.4

  48. 1.29.1

    21 Dec 2022
    • Chromium 109.0.5414.46

    • Mozilla Firefox 107.0

    • WebKit 16.4

  49. 1.29.0

    16 Dec 2022
    • New method route.fetch() and new option json for route.fulfill():

      await page.route('**/api/settings', async route => {
        // Fetch original settings.
        const response = await route.fetch();
      
        // Force settings theme to a predefined value.
        const json = await response.json();
        json.theme = 'Solorized';
      
        // Fulfill with modified data.
        await route.fulfill({ json });
      });
    • New method locator.all() to iterate over all matching elements:

      // Check all checkboxes!
      const checkboxes = page.getByRole('checkbox');
      for (const checkbox of await checkboxes.all())
        await checkbox.check();
    • Locator.selectOption matches now by value or label:

      <select multiple>
        <option value="red">Red</div>
        <option value="green">Green</div>
        <option value="blue">Blue</div>
      </select>
      await element.selectOption('Red');
  50. 1.28.1

    23 Nov 2022
    • Chromium 108.0.5359.29

    • Mozilla Firefox 106.0

    • WebKit 16.4

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.