replayio / playwright-tests

Playwright harness and tests used by replay CI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Playwright Tests

Playwright Tests is the test suite we use to ensure Replay can record and replay top sites.

How to run

npm install
node examples/airbnb.js
RECORD_REPLAY_API_KEY=123 npx @replayio/replay view-latest

FAQ

Playwright version

All runs using scripts in this repository are currently version locked to playwright 1.10.0, due to the changing names for firefox subdirectories (e.g. firefox-1238) between playwright versions. This would be nice to improve.

You can disable headless mode to view the browser

const browser = await firefox.launch({
  headless: false,
});

Playwright's CLI is a great way to record new tests

Creating new tests

npx playwright codegen airbnb.com

About

Playwright harness and tests used by replay CI

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 97.9%Language:TypeScript 1.9%Language:Dockerfile 0.1%Language:Shell 0.0%