Coder Social home page Coder Social logo

applitools / example-playwright-typescript Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 8.0 324 KB

Applitools Example: Playwright in TypeScript

Home Page: https://applitools.com/tutorials/quickstart/web/playwright/typescript

License: Apache License 2.0

TypeScript 100.00%
applitools applitools-example applitools-eyes applitools-tutorial playwright test-automation tutorial typescript ultrafast-grid visual-testing

example-playwright-typescript's Introduction

Applitools Example: Playwright in TypeScript

This is the example project for the Playwright TypeScript tutorial. It shows how to start automating visual tests with Applitools Eyes and Playwright in TypeScript.

It uses:

It can also run tests with:

To run this example project, you'll need:

  1. An Applitools account, which you can register for free
  2. A recent version of Node.js
  3. 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. 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, and then run:

npm test

For full instructions on running this project, take our Playwright TypeScript tutorial!

example-playwright-typescript's People

Contributors

automationpanda avatar mjapplitools avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

example-playwright-typescript's Issues

Problem to run the ts example

Hello Pandy,

I'm totally new to Playwright/Applitools/VSCode. So I stared with the provided example on the Applitools page (https://applitools.com/tutorials/quickstart/web/playwright/typescript).

I did everything like it was written (In my opinion it could be written more for dummies like, probably a dev would it done faster), but I did got an error while running the example. So I asked a dev for help, and he advised my to add a line of code to the config file in line 16, like "testMatch:'*spec.ts'," . With that line of code the example did run without errors.

https://github.com/applitools/example-playwright-typescript-ufg/blob/99df4fe74a16adec42c838fe22afee2868e76617/playwright.config.ts#L15

Best wishes.
David

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.