Skip to content

test: Playwright e2e smoke against production container - #2293

Merged
felladrin merged 4 commits into
felladrin:mainfrom
KhyFee:test/playwright-e2e-smoke-2173
Aug 3, 2026
Merged

test: Playwright e2e smoke against production container#2293
felladrin merged 4 commits into
felladrin:mainfrom
KhyFee:test/playwright-e2e-smoke-2173

Conversation

@KhyFee

Copy link
Copy Markdown
Contributor

Summary

  • Add Playwright + e2e/smoke.spec.ts: open /?q=playwright, assert textbox/Search, wait for a result link
  • Extend reusable-check-docker.yml to npm ci, install Chromium, run npm run test:e2e against the already-up production compose on :7860
  • Always tear down compose (if: always())

Closes#2173

Test plan

  • PR docker check job stays green (curl + Playwright smoke)
  • Locally: docker compose -f docker-compose.production.yml up -d then npm run test:e2e

KhyFeeand others added 4 commits August 3, 2026 14:34
Load /?q=, assert search UI and at least one result link. Wire into the existing docker PR check after the homepage curl gate.
Closesfelladrin#2173
- Add data-testid to search result links for stable selectors
- Add rel=noopener noreferrer to result anchors (security + consistency)
- Use getByTestId instead of fragile a[target=_blank] selector
- Accept 'no results' as valid terminal state to avoid flaky CI when
upstream engines are rate-limited
- Raise Playwright test timeout to 90s (30s default vs 30s fetch timeout)
- Add screenshot on failure for debugging
- Upload Playwright report artifact on CI failure
@felladrinfelladrin changed the title test: Playwright e2e smoke against production container (#2173)test: Playwright e2e smoke against production containerAug 3, 2026

@felladrinfelladrin left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution, @KhyFee! 🙌

@felladrin
felladrin merged commit 91f6946 into felladrin:mainAug 3, 2026
3 checks passed
@KhyFee

Copy link
Copy Markdown
ContributorAuthor

Thanks for the review and merge, @felladrin — glad the Docker-backed smoke landed. Happy to follow up if you want more e2e coverage later.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a Playwright E2E smoke test

2 participants

@KhyFee@felladrin