Skip to content

Commit 8d6300e

Browse files
kevinevans1Copilot
andcommitted
Add Playwright test suite for Kodra website
- Add package.json with Playwright, axe-core, and serve dependencies - Add playwright.config.js with 7 browser projects (chromium, edge, webkit, firefox, mobile-chrome, mobile-safari, ipad) - Add browser-compatibility.spec.js: scroll, CSS validation, footer rendering, Safari compat, mobile touch targets, navigation, responsive layout, link validation, image loading, terminal component (40 tests) - Add world-class-audit.spec.js: WCAG 2.1 AA accessibility, Core Web Vitals performance, SEO/meta/JSON-LD, security, visual regression screenshots, Kodra content validation (35 tests) - Add .github/workflows/website-tests.yml for CI on website file changes - Update .gitignore with playwright-report/ and playwright/.cache/ Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e3f3933 commit 8d6300e

10 files changed

Lines changed: 2193 additions & 0 deletions
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Website Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths: ['index.html', '404.html', 'assets/**', 'tests/website/**', 'playwright.config.js', 'package.json']
7+
pull_request:
8+
branches: [main]
9+
paths: ['index.html', '404.html', 'assets/**', 'tests/website/**', 'playwright.config.js', 'package.json']
10+
11+
concurrency:
12+
group: website-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
test:
17+
name: Playwright Tests
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 15
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: '20'
25+
- run: npm ci
26+
- run: npx playwright install --with-deps
27+
- run: npx playwright test
28+
- uses: actions/upload-artifact@v4
29+
if: failure()
30+
with:
31+
name: playwright-report
32+
path: playwright-report/
33+
retention-days: 7
34+
- uses: actions/upload-artifact@v4
35+
if: failure()
36+
with:
37+
name: test-results
38+
path: test-results/
39+
retention-days: 7

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ tests/lib/bats-assert/
4040
test-results/
4141
node_modules/
4242
ci-reports/
43+
playwright-report/
44+
playwright/.cache/

0 commit comments

Comments
 (0)