Catch an invoice retry regression in CI

A billing page already shows two invoices. A refresh returns 503 and the page incorrectly says there are no invoices. Reproduce that failure in the runner, then verify the corrected client keeps the list visible and updates it after a retry.

Billing application · CI checks

Run the billing regression

northline / billing-webPrivate

Preserve billing history after a failed refresh

ActionsBilling UI#284
FailedOriginal · 2/3 checks

billing-regression

Preserves the last loaded invoices on HTTP 503

Action
Refresh invoices
Request
GET /api/invoices503 Service Unavailable
Fixture
{"error":"billing_service_unavailable"}
Expected
INV-1041, INV-1042 · Refresh unavailable
Observed
No invoices · No warning

Keep the same checks before and after the fix

  1. Establish the starting state. Serve a known 200 response and check that the app renders both invoice IDs. A test that starts with an empty screen can miss the data loss.
  2. Fail one refresh. Deliver a 503 to the refresh request. Check that both IDs remain visible and that the page reports an unavailable refresh. The original client loses both signals.
  3. Verify one retry. Return an updated 200 response on the next request. Click Retry once. Check that the third invoice appears, the warning clears and one retry request reaches the dependency.

In CI, keep the response sequence and the starting data fixed. Run the browser assertions in your own test runner. Save the HTTP trace and the test report together so a failed request can be separated from a failed client assertion.