Applitools Example: Playwright TypeScript with the Ultrafast Grid
This is the example project for the Playwright TypeScript tutorial. It shows how to start automating visual tests with Applitools Eyes and the Ultrafast Grid using Playwright in TypeScript.
It uses:
- TypeScript as the programming language
- Playwright for browser automation
- Playwright Test as the core test framework
- Chromium as the local browser for testing
- npm for dependency management
- Applitools Eyes for visual testing
- Applitools Ultrafast Grid for cross-browser execution
To run this example project, you'll need:
- An Applitools account, which you can register for free
- A recent version of Node.js
- A good TypeScript editor like Visual Studio Code
To install dependencies and set up Playwright, run:
npm install
npx playwright install
The main test case spec is acme-bank.spec.ts
.
To execute tests, set the APPLITOOLS_API_KEY
environment variable
to your account's API key,
and then run:
npm test
For full instructions on running this project, take our Playwright TypeScript tutorial!