Skip to content

feat: catch waitForSelector error #4

feat: catch waitForSelector error

feat: catch waitForSelector error #4

name: "dev-test-waitForSelector"
on:
push:
branches:
- dev
jobs:
dev-test-waitForSelector:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install puppeteer-headful
uses: mujo-code/puppeteer-headful@master
env:
CI: 'true'
- name: screenshots-ci-action-waitForSelector
uses: flameddd/screenshots-ci-action@dev
with:
url: https://flameddd.github.io/screenshots-ci-action-test-waitForSelector/
noDesktop: true
devices: iPhone 6
waitForSelector: '#waitForElement'
- uses: actions/upload-artifact@v2
with:
path: screenshots
name: Download-screenshots
- name: screenshots-ci-action-waitForSelector-wrongSelector
uses: flameddd/screenshots-ci-action@dev
with:
url: https://flameddd.github.io/screenshots-ci-action-test-waitForSelector/
noDesktop: true
devices: iPhone 6
waitForSelector: '.waitForElement' # Give wrong element selector for test
- uses: actions/upload-artifact@v2
with:
path: screenshots
name: Download-screenshots2