This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

playwright-runner
TypeScript icon, indicating that this package has built-in type declarations

0.3.25 • Public • Published

🎭 playwright-runner

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-runner
  2. Place unit tests in files ending with .spec.*.
// src/foo.spec.ts
import 'playwright-runner';
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 .

Readme

Keywords

none

Package Sidebar

Install

npm i playwright-runner

Weekly Downloads

17

Version

0.3.25

License

Apache-2.0

Unpacked Size

18.5 kB

Total Files

5

Last publish

Collaborators

  • dgozman
  • pavelfeldman