Skip to content

test(e2e): stabilize release regression checks - #1142

Merged
khaira777 merged 1 commit into
mainfrom
codex/release-browser-qa
Oct 15, 2026
Merged

khaira777 merged 1 commit into
mainfrom
codex/release-browser-qa

Conversation

@khaira777

Copy link
Copy Markdown
Contributor

Intent

PR 1 - Stabilize the release browser checks (Fixes #1139)
New branch: codex/release-browser-qa
Title: test(e2e): stabilize release regression checks

Fix the two observed failures in the full browser regression suite (npm run test:e2e:browser):

  • In the bill-retry storage test, explicitly await the bill-generation response/body observation before asserting the collected bill ID. Retain the checks that payment did not start and retry reused the original order.
  • Scope the pre-bill Print locator to the actual action, using an exact accessible locator or the detail pane. It must not also match the printer-status title.
  • Preserve fixture cleanup and restore shared settings. Do not hide failures with arbitrary sleeps, broad retries or weaker assertions.

Acceptance: both tests pass repeatedly in isolation and in the full suite with the printer status bar populated.

What Changed

  • Awaited /api/bills/generate response completion and body parsing in frontend/e2e/order-attempt-storage.spec.ts before asserting collected bill IDs across the initial failed attempt and subsequent retry.
  • Updated the pre-bill print button locator in frontend/e2e/orders-master-detail.spec.ts from getByTitle('Print') to getByRole('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 billIds and 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 full e2e/order-attempt-storage.spec.ts and e2e/orders-master-detail.spec.ts suites, 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.

  • Live validation: ✅ go - 2 of 2 scenarios driven live against the product
Scenario Result Live Evidence
Prepaid checkout losing the bill retry snapshot awaits bill-generation response body, halts before payment starts, and reuses the original order and bill ID on retry without duplicating the order ✅ pass live ~/.no-mistakes/evidence/01M4YE4MSY9X5CQSZQR9X02QH0/prepaid-bill-retry-halted-before-payment.png
Orders master/detail pane displays applied charges and opens the Print Receipt modal via the exact Print button without colliding with the populated printer status bar indicator ✅ pass live ~/.no-mistakes/evidence/01M4YE4MSY9X5CQSZQR9X02QH0/orders-detail-prebill-print-with-printer-status.png

Prepaid checkout halted before payment when bill retry snapshot storage fails
Retried prepaid checkout reuses original order and completes payment
Orders master/detail pre-bill Print Receipt modal with populated printer status bar

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.

  • Live validation: ✅ go - 2 of 2 scenarios driven live against the product
Scenario Result Live Evidence
Prepaid checkout losing the bill retry snapshot awaits bill-generation response body, halts before payment starts, and reuses the original order and bill ID on retry without duplicating the order ✅ pass live ~/.no-mistakes/evidence/01M4YE4MSY9X5CQSZQR9X02QH0/prepaid-bill-retry-halted-before-payment.png
Orders master/detail pane displays applied charges and opens the Print Receipt modal via the exact Print button without colliding with the populated printer status bar indicator ✅ pass live ~/.no-mistakes/evidence/01M4YE4MSY9X5CQSZQR9X02QH0/orders-detail-prebill-print-with-printer-status.png
  • npm run build && npm run build:frontend
  • cd 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=3
  • cd 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
  • cd 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.

@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: FreeOpenSourcePOS/FloCafe/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eeca99f1-928d-4174-9aa6-4d5842594bea
📥 Commits

Reviewing files that changed from the base of the PR and between 309db4a and c7c811d.

📒 Files selected for processing: 2
  • frontend/e2e/order-attempt-storage.spec.ts
  • frontend/e2e/orders-master-detail.spec.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@khaira777

Copy link
Copy Markdown
Contributor Author

@greptile review

@khaira777

Copy link
Copy Markdown
Contributor Author

@greptileai review

@greptile-apps

greptile-apps Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge.

Summary

This PR stabilizes two browser regression checks without changing production code.

  • Checkout retry checks wait until bill IDs are collected.
  • The orders check clicks the exact Print button.

No actionable issues found. Browser tests were not run during this review.

Reviews (1) · Last reviewed commit: "test(e2e): stabilize release regression ..." · Reviewed by Greptile

@khaira777
khaira777 merged commit ed80d60 into main Oct 15, 2026
24 checks passed
@khaira777
khaira777 deleted the codex/release-browser-qa branch October 15, 2026 00:49
Sign up for free to 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.

test(e2e): stabilize bill-retry storage and pre-bill print locator in browser regression suite

1 participant