Skip to content

Run e2e (browser) tests #8

Run e2e (browser) tests

Run e2e (browser) tests #8

Workflow file for this run

name: Run e2e (browser) tests
on:
pull_request:
branches:
- bau/playwright-dev-test
workflow_call:
inputs:
copilot_environment:
description: "Copilot environment to deploy to"
type: string
default: dev
workflow_dispatch:
inputs:
copilot_environment:
description: "Copilot environment to deploy to"
type: choice
options:
- dev
- test
default: dev
jobs:
run_tests:
name: e2e tests
runs-on: ubuntu-latest
environment: ${{ inputs.copilot_environment }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Install playwright browsers
run: playwright install
- name: Run tests
run: pytest tests --e2e --e2e-env ${{ inputs.copilot_environment }}