test: Playwright e2e smoke against production container - #2293
Merged
Conversation
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
Uh oh!
There was an error while loading. Please reload this page.
KhyFee
commented
Aug 4, 2026
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
e2e/smoke.spec.ts: open/?q=playwright, assert textbox/Search, wait for a result linkreusable-check-docker.ymltonpm ci, install Chromium, runnpm run test:e2eagainst the already-up production compose on:7860if: always())Closes#2173
Test plan
docker compose -f docker-compose.production.yml up -dthennpm run test:e2e