Get started with Applitools Eyes visual testing with these examples of using the Playwright and the Eyes Playwright SDK.
Run your first test in just a few minutes by cloning this repository!
- Click the Use this template button at the top of the repository or click here to create a new repository
- Add your Applitools API Key as a repository Secret under the Settings tab called
APPLITOOLS_API_KEY
- Navigate to the Actions tab, find and select the CI workflow, and select Run Workflow
And that's it! Your tests should now be available to review in the Applitools dashboard.
npm install
Before running your test, you need to make your API key available to the environment. You can do this by either prepending your test command or exporting it in your terminal session.
To prepend, run you a command like npm test
as:
APPLITOOLS_API_KEY="[Your Key]" npm test
To export your API key on a Mac, run:
export APPLITOOLS_API_KEY="[Your Key]"
To export your API key on Windows, run:
set APPLITOOLS_API_KEY="[Your Key]"
npm test
This repository includes a variety of examples on how you can use Applitools Eyes with your Playwright project.
- Basic: running the Eyes SDK without a manually configured runner
- Classic: running the Eyes SDK with the Classic runner (locally)
- Ultrafast: running the Eyes SDK with the Applitools Ultrafast Grid (cloud)
Also included are two separate GitHub Actions.
- tests.yml: runs the suite of tests whenever changes are pushed to the main branch or whenever a pull request is targeted to the main branch
- updates.yml: runs daily via cron schedule updating all project dependencies
Note: updates.yml is intended to be a tool for Applitools to maintain this tutorial with its limited depedencies and scope. It's not recommended to automatically upgrade all dependencies without process and proper review.
Learn more about how to install and integrate the Eyes SDK with our Playwright tutorial!
https://applitools.com/tutorials/playwright.html
Learn more about Applitools Eyes and the Ultrafast Test Cloud at applitools.com.
More about the Eyes Playwright SDK: