Skip to content

A CLI tool for running Google Chrome Recordings - Can also be used in Github Actions

Notifications You must be signed in to change notification settings

Flaeng/puppyteer

Repository files navigation

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 
  1. 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

About

A CLI tool for running Google Chrome Recordings - Can also be used in Github Actions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published