Giter Site home page Giter Site logo

applitools-tutorial-playwright's Introduction

Applitools Tutorial - Playwright

Get started with Applitools Eyes visual testing with these examples of using the Playwright and the Eyes Playwright SDK.

⚡️ Quick Start

Run your first test in just a few minutes by cloning this repository!

  1. Click the Use this template button at the top of the repository or click here to create a new repository
  2. Add your Applitools API Key as a repository Secret under the Settings tab called APPLITOOLS_API_KEY
  3. 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.

🚀 Running the Tests Locally

Installing Dependencies

npm install

Set Applitools API Key

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]"

Running Tests

npm test

🧐 What's inside?

Test Examples

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)

GitHub Action Workflows

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.

👀 Add Applitools Eyes to your Playwright project

Learn more about how to install and integrate the Eyes SDK with our Playwright tutorial!

https://applitools.com/tutorials/playwright.html

🧰 More Information

Learn more about Applitools Eyes and the Ultrafast Test Cloud at applitools.com.

More about the Eyes Playwright SDK:

applitools-tutorial-playwright's People

Contributors

autom8edchaos avatar

Watchers

James Cloos avatar  avatar

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.