Skip to content

ci: Add jest unit tests #125

ci: Add jest unit tests

ci: Add jest unit tests #125

name: end-to-end-tests
on:
push:
paths:
- .github/workflows/test-with-selenium.yaml
- chrome/**
- firefox/**
- tests/scripts/**
- tests/testcases/**
- tests/end-to-end-test/**
pull_request:
jobs:
test-with-selenium:
name: End-to-end Test with Selenium
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull docker images
run: tests/scripts/docker-compose.sh pull
- name: Start test containers
run: tests/scripts/docker-compose.sh up -d
- name: Test selenium hub connection
run: tests/scripts/docker-utils/test-connection.sh http://selenium-hub:4444
# Start testing
- name: Test default
run: tests/scripts/docker-utils/exec-selenium.sh test_default.py
- name: Test navigation
run: tests/scripts/docker-utils/exec-selenium.sh test_navigation.py
# Clean up
- name: Stop test containers
if: always()
run: tests/scripts/docker-compose.sh shutdown