Skip to content

Commit

Permalink
[FEATURE] use WebDriver acceptInsecureCertificates, enable Firefox ac…
Browse files Browse the repository at this point in the history
…ceptance tests in CI

(cherry picked from commit f6be8cc)
  • Loading branch information
jonaseberle committed Apr 24, 2021
1 parent 611f14f commit ae202fb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .ddev/docker-compose.selenium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.6'
services:
selenium-chrome:
container_name: ddev-${DDEV_SITENAME}-selenium-chrome
image: flightvision/selenium-node-chrome-with-mkcert:latest
image: selenium/node-chrome:3
depends_on:
- selenium-hub
labels:
Expand All @@ -25,7 +25,7 @@ services:

selenium-firefox:
container_name: ddev-${DDEV_SITENAME}-selenium-firefox
image: flightvision/selenium-node-firefox-with-mkcert:latest
image: selenium/node-firefox:3
depends_on:
- selenium-hub
labels:
Expand All @@ -48,7 +48,7 @@ services:

selenium-hub:
container_name: ddev-${DDEV_SITENAME}-selenium-hub
image: selenium/hub:3.141.59-xenon
image: selenium/hub:3
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.platform: ddev
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
fail-fast: false
matrix:
php-version: [7.4]
browser: [chrome, firefox]
theme: [bootstrap3-banner, bootstrap3-modal, bootstrap4-modal, bootstrap5-modal, customtheme]
steps:
- uses: actions/checkout@v2
Expand All @@ -31,10 +32,10 @@ jobs:
# Setup tests
- run: ddev composer cookieman:${{ matrix.theme }}
# Run tests
- run: ddev composer test:acceptance
- run: ddev composer test:acceptance:${{ matrix.browser }}
# Save acceptance reports
- uses: actions/upload-artifact@master
with:
name: ${{ matrix.theme }}-${{ matrix.php-version }}-ar
name: ${{ matrix.browser }}-${{ matrix.theme }}-${{ matrix.php-version }}-ar
path: Build/AcceptanceReports
if: always()
7 changes: 4 additions & 3 deletions Build/local.codeception.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env:
WebDriver:
browser: chrome
capabilities:
browserName: chrome
acceptInsecureCerts: true

firefox:
modules:
Expand All @@ -39,8 +39,9 @@ env:
WebDriver:
browser: firefox
capabilities:
browserName: firefox

acceptInsecureCerts: true
moz:firefoxOptions:
args: ["-headless"]

extensions:
enabled:
Expand Down

0 comments on commit ae202fb

Please sign in to comment.