Skip to content

add e2e tests for the quiz app #2

add e2e tests for the quiz app

add e2e tests for the quiz app #2

Workflow file for this run

name: End-to-End Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
e2e-tests:
name: Run E2E Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Start LocalStack
uses: LocalStack/setup-localstack@main
with:
image-tag: 'latest'
use-pro: 'true'
configuration: LS_LOG=trace
install-awslocal: 'true'
env:
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
- name: Deploy infrastructure
run: |
./bin/deploy.sh
- name: Install Playwright
run: |
cd tests/e2e
pip install -r requirements.txt
playwright install chromium
playwright install-deps chromium
- name: Run E2E Tests
run: |
cd tests/e2e
pytest -s test_quiz_flow.py
env:
AWS_DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test