Update dev-test-waitForSelector for different case #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |