1.1.1 • Published 2 years ago

@flaeng/puppyteer v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Puppyteer

CLI tool for running Google Chrome DevTools Recordings

run run with detailed errors run with filter run with domain

These tests should fail (but show as green because of continue-on-error - manuel check is required):

should fail - run with errors should fail - run

How to (local)

1) Install puppyteer

npm i -g @flaeng/puppyteer 

2) Navigate to the folder with the .js-files and run puppyteer

puppyteer run

Use puppyteer -h for help and list of commands

How to (Github action)

1) Put your recording-files in a folder at root ('ui-tests' is used as an example)

2) Create a workflow on Github and paste the following code:

name: run

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: '16'

      - name: npm install
        run: npm install -g @flaeng/puppyteer

      - name: puppyteer run
        run: puppyteer run -p ui-tests

How to get scripts

Follow Google's guide for the devtools recorder: https://developer.chrome.com/docs/devtools/recorder/

Known issues

Known issues are shown in this document

Example

Example 1

Supported options