Skip to content

don't click on links that have targets #1714

don't click on links that have targets

don't click on links that have targets #1714

Workflow file for this run

name: Autoscroll Behavior
on:
push:
pull_request:
schedule:
- cron: '10 16 * * *'
jobs:
autoscroll_test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: install requirements
run: yarn install
- uses: c-py/action-dotenv-to-setenv@v2
with:
env-file: test/test.env
- name: get browsertrix image
run: docker pull $BROWSERTRIX_IMAGE
- name: run crawl
run: docker run -v $PWD/dist/behaviors.js:/app/node_modules/browsertrix-behaviors/dist/behaviors.js $BROWSERTRIX_IMAGE crawl --url https://www.iana.org/numbers --limit 1 --logging behaviors --behaviors autoplay,autofetch,autoscroll > ./log
- name: cat log
run: cat ./log
- name: compare crawl log to expected
run: cat ./log | jq -c 'select(.context == "behaviorScript") | .details' | diff - ./test/expected-autoscroll.log