JSPM

@playwright/test

0.3.27
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14398710
  • Score
    100M100P100Q217038F
  • License Apache-2.0

A test runner for running tests with Playwright.

Package Exports

  • @playwright/test

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@playwright/test) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

🎭 playwright-test

This package is not ready for use. If you want to run tests with playwright, checkout jest-playwright for Jest or karma-playwright-launcher for Karma.

A test runner for running tests with Playwright.

  1. npm i -D @playwright/test
  2. Place unit tests in files ending with .spec.*.
// src/foo.spec.ts
import '@playwright/test';
import { it, expected } from '@playwright/test-runner';

it('is a basic test with the page', async ({page}) => {
  await page.goto('https://playwright.dev/');
  const home = await page.waitForSelector('home-navigation');
  expect(await home.evaluate(home => home.innerText)).toBe('🎭 Playwright');
});
  1. Run all of your tests with npx test-runner .