Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Applitools Example: Playwright Fixture with Typescript

NotificationsYou must be signed in to change notification settings

applitools/example-eyes-playwright-fixture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the example project for thePlaywright TypeScript tutorial.It shows how to start automating visual testswithApplitools EyesandPlaywright in TypeScript.

It uses:

It can also run tests with:

To run this example project, you'll need:

  1. AnApplitools account, which you can register for free
  2. A recent version ofNode.js
  3. A good TypeScript editor likeVisual Studio Code

Installation

Install dependencies and set up Playwright:

npm installnpx playwright install

Environment Variables

Set theAPPLITOOLS_API_KEY environment variable to youraccount's API key. You can do this by creating a.env file in the project root:

APPLITOOLS_API_KEY=your_api_key_here

If you are using a dedicated Applitools cloud, you can also set:

APPLITOOLS_SERVER_URL=https://your-server-url.applitools.com

Running Tests

To run all tests:

npx playwrighttest

To run Playwright in UI mode:

npx playwrighttest --ui

Main Test Case

The main test case spec isexample.spec.ts.By default, the project will run tests using Applitools Eyes.

Test reports are generated in theplaywright-report/ directory.

More Information

For full instructions on running this project, see thePlaywright TypeScript tutorial!

About

Applitools Example: Playwright Fixture with Typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp