diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml new file mode 100644 index 00000000..d3bc83d2 --- /dev/null +++ b/.github/workflows/playwright.yml @@ -0,0 +1,47 @@ +name: Playwright E2E Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + cd web-app + npm ci + + - name: Install Playwright Browsers + run: | + cd web-app + npx playwright install --with-deps + + - name: Run Playwright tests + run: | + cd web-app + npx playwright test + + - name: Upload Playwright Report + uses: actions/upload-artifact@v4 + if: always() + with: + name: playwright-report + path: web-app/playwright-report/ + retention-days: 30 diff --git a/.gitignore b/.gitignore index d50a3efe..a6b60985 100644 Binary files a/.gitignore and b/.gitignore differ diff --git a/web-app/index.html b/web-app/index.html index abcded8d..4fea3d40 100644 --- a/web-app/index.html +++ b/web-app/index.html @@ -110,6 +110,250 @@ + + + + +