Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/applitools/example-playwright-typescript
Applitools Example: Playwright in TypeScript
https://github.com/applitools/example-playwright-typescript
applitools applitools-example applitools-eyes applitools-tutorial playwright test-automation tutorial typescript ultrafast-grid visual-testing
Last synced: about 1 month ago
JSON representation
Applitools Example: Playwright in TypeScript
- Host: GitHub
- URL: https://github.com/applitools/example-playwright-typescript
- Owner: applitools
- License: apache-2.0
- Created: 2022-06-08T23:12:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-09T16:23:30.000Z (6 months ago)
- Last Synced: 2024-07-09T20:53:25.165Z (6 months ago)
- Topics: applitools, applitools-example, applitools-eyes, applitools-tutorial, playwright, test-automation, tutorial, typescript, ultrafast-grid, visual-testing
- Language: TypeScript
- Homepage: https://applitools.com/tutorials/quickstart/web/playwright/typescript
- Size: 360 KB
- Stars: 5
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Applitools Example: Playwright in TypeScript
This is the example project for the [Playwright TypeScript tutorial](https://applitools.com/tutorials/quickstart/web/playwright/typescript).
It shows how to start automating visual tests
with [Applitools Eyes](https://applitools.com/platform/eyes/)
and [Playwright](https://playwright.dev/) in TypeScript.It uses:
* [TypeScript](https://www.typescriptlang.org/) as the programming language
* [Playwright](https://playwright.dev/) for browser automation
* [Playwright Test](https://playwright.dev/docs/api/class-test) as the core test framework
* [Chromium](https://www.chromium.org/chromium-projects/) as the local browser for testing
* [npm](https://www.npmjs.com/) for dependency management
* [Applitools Eyes](https://applitools.com/platform/eyes/) for visual testingIt can also run tests with:
* [Applitools Ultrafast Grid](https://applitools.com/platform/ultrafast-grid/) for cross-browser execution
To run this example project, you'll need:
1. An [Applitools account](https://auth.applitools.com/users/register), which you can register for free
2. A recent version of [Node.js](https://nodejs.org/en/download/)
3. A good TypeScript editor like [Visual Studio Code](https://code.visualstudio.com/docs/languages/typescript)To install dependencies and set up Playwright, run:
```
npm install
npx playwright install
```The main test case spec is [`acme-bank.spec.ts`](tests/acme-bank.spec.ts).
By default, the project will run tests with Ultrafast Grid.
You can change this setting in the test spec.To execute tests, set the `APPLITOOLS_API_KEY` environment variable
to your [account's API key](https://applitools.com/tutorials/guides/getting-started/registering-an-account),
and then run:```
npm test
```**For full instructions on running this project, take our
[Playwright TypeScript tutorial](https://applitools.com/tutorials/quickstart/web/playwright/typescript)!**