Repository navigation
test(e2e): stabilize release regression checks - #1142
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 58 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@greptile review |
|
@greptileai review |
[Low impact] This PR appears safe to merge.
|
Intent
PR 1 - Stabilize the release browser checks (Fixes #1139)
New branch:
codex/release-browser-qaTitle:
test(e2e): stabilize release regression checksFix the two observed failures in the full browser regression suite (
npm run test:e2e:browser):Acceptance: both tests pass repeatedly in isolation and in the full suite with the printer status bar populated.
What Changed
/api/bills/generateresponse completion and body parsing infrontend/e2e/order-attempt-storage.spec.tsbefore asserting collected bill IDs across the initial failed attempt and subsequent retry.frontend/e2e/orders-master-detail.spec.tsfromgetByTitle('Print')togetByRole('button', { name: 'Print', exact: true })so it does not collide with the printer status bar title.Risk Assessment
✅ Low: Targeted E2E test stabilization that awaits the bill-generation response body before asserting on
billIdsand uses an exact button role locator for the pre-bill Print action without altering production code or weakening assertions.Testing
Built the backend and desktop-mode static frontend, then drove the updated Playwright E2E scenarios against isolated E2E server instances (
tests/e2e-server.cjs) both in isolation (--repeat-each=3), across the fulle2e/order-attempt-storage.spec.tsande2e/orders-master-detail.spec.tssuites, and with a configured network printer populating the bottom printer status bar (--repeat-each=3), capturing three live browser screenshots of the halted checkout, retried payment, and pre-bill Print Receipt modal; all targeted scenarios passed.Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
npm run build && npm run build:frontendcd frontend && E2E_BASE_URL=http://127.0.0.1:43001 E2E_KDS_BASE_URL=http://127.0.0.1:43002 E2E_SERVER_APP_BASE_URL=http://127.0.0.1:43003 npx playwright test --config=playwright.config.ts --project=chromium e2e/order-attempt-storage.spec.ts e2e/orders-master-detail.spec.ts -g "prepaid: losing the bill retry snapshot stops payment and reuses the original order key|the detail pane carries applied charges and the pre-bill print action" --repeat-each=3cd frontend && E2E_BASE_URL=http://127.0.0.1:43001 E2E_KDS_BASE_URL=http://127.0.0.1:43002 E2E_SERVER_APP_BASE_URL=http://127.0.0.1:43003 npx playwright test --config=playwright.config.ts --project=chromium e2e/order-attempt-storage.spec.ts e2e/orders-master-detail.spec.tscd frontend && E2E_BASE_URL=http://127.0.0.1:43011 E2E_KDS_BASE_URL=http://127.0.0.1:43012 E2E_SERVER_APP_BASE_URL=http://127.0.0.1:43013 npx playwright test --config=playwright.config.ts --project=chromium e2e/menu-printing.spec.ts e2e/order-attempt-storage.spec.ts e2e/orders-master-detail.spec.ts -g "print menu offers receipt, paper, and PDF destinations|prepaid: losing the bill retry snapshot stops payment and reuses the original order key|the detail pane carries applied charges and the pre-bill print action" --repeat-each=3✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.