Skip to content

Update dev-test-waitForSelector for different case #5

Update dev-test-waitForSelector for different case

Update dev-test-waitForSelector for different case #5

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