saucedemo-automation-with-puppeteer

Using the Puppeteer library to perform automated testing on Swag Labs' soucedemo.com website.

Stars
0
Committers
1

saucedemo-automation-with-puppeteer

Puppeteer is a Node library which provides a high-level API to control headless Chrome or Chromium over the DevTools Protocol. It can also be configured to use full (non-headless) Chrome or Chromium.

Using the Puppeteer library to perform automated testing on Swag Labs' soucedemo.com website. Puppeteer is a Node library that provides a high-level API for controlling Chrome or Chromium via the DevTools protocol. Puppeteer runs headless by default, but can be configured to run full (headless) Chrome or Chromium.

Links

https://github.com/puppeteer/puppeteer/tree/main/examples

https://github.com/argos-ci/jest-puppeteer

https://pptr.dev/guides/getting-started

https://pptr.dev/api/puppeteer.filechooser

https://www.saucedemo.com/

https://developer.chrome.com/docs/puppeteer?hl=pt-br

Comandos

Rodar um teste

jest --detectOpenHandles tests/[nome-da-pasta]/[nome-do-teste].test.js

Criar um teste

npm run generate-test

Rodar um teste com interface

npm run test-seq [caminho-do-teste]

Rodar um teste sem interface

npm run test [caminho-do-teste]

Related Projects