🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

playwright-runner

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

playwright-runner

A test runner for running tests with Playwright.

latest
Source
npmnpm
Version
0.3.25
Version published
Maintainers
5
Created
Source

🎭 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.

  • npm i -D playwright-runner
  • 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');
});
  • Run all of your tests with npx test-runner .

FAQs

Package last updated on 24 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts