Skip to content

Add dev-to-master-PR-commnet-test-waitForSelector CI #13

Add dev-to-master-PR-commnet-test-waitForSelector CI

Add dev-to-master-PR-commnet-test-waitForSelector CI #13

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
waitForSelectorTimeout: 5000
- uses: actions/upload-artifact@v2
with:
path: screenshots
name: Download-screenshots-element-non-exist
- name: screenshots-ci-action-waitForSelector-body
uses: flameddd/screenshots-ci-action@dev
with:
url: https://flameddd.github.io/screenshots-ci-action-test-waitForSelector/
noDesktop: true
devices: iPhone 6
waitForSelector: 'body' # Give html tag to test element already exist
- uses: actions/upload-artifact@v2
with:
path: screenshots
name: Download-screenshots-element-exist