Project

General

Profile

Support #226

Updated by Eugene Suhanov 3 months ago

Covers todo items 4, 5 and 6. 

 **The constraint that shapes all of it: `.gitlab-ci.yml` has only `build` and `deploy` stages.** 
 `php artisan test` has never run in CI, and a test stage is **not** being added — that decision is not ours. 
 Every test in this ticket therefore runs locally, by hand. Scope the effort accordingly: a suite nobody 
 executes automatically earns its keep only if it is small enough to actually be run. 

 **Item 5 — payment error coverage. Answer: largely yes, with one real gap.** Provider-side failure is 
 already covered — `test_provider_failure_returns_502_without_leaking_secret`, 
 `test_provider_timeout_leaves_exactly_one_reconcilable_row`, `test_card_checkout_keeps_cart_when_provider_fails`, 
 `test_provider_exception_degrades_to_last_known_state_instead_of_500`, plus retry/exhaustion cases in 
 `RevolutClientTest`. All via `Http::fake()`, none against a live sandbox. The genuine gap is the 
 **customer's** connection dropping mid-payment, which no server-side test can reach. Written up in the 
 audit rather than papered over; we are explicitly **not** building a suite that drives Revolut's live 
 sandbox from an automated runner. 

 **Item 6 — browser compatibility.** Delivered as a code-level audit first, then a smoke suite targeting what 
 the audit found. A manual click-through without that list just re-finds whatever happens to be on screen. 
 Two concrete findings already: the Vite build target is **unpinned** (no `build.target`, no `browserslist`), 
 so the supported-browser floor is whatever the installed Vite defaults to and moves silently on upgrade; and 
 `.category-scroll` hides its scrollbar with `[scrollbar-width:none]` alone, with no `::-webkit-scrollbar` 
 companion — unlike `.product-card__imgs` and `.gallery-main-track`, which have both — so the category pill 
 row shows a scrollbar on Safari below 18.2 where the other two rows do not. 

 **Playwright**, committed at `tests/e2e/`, `@playwright/test` in `devDependencies`. Safe for the image: the 
 `Dockerfile`'s `frontend` stage is isolated and only `public/build` reaches the runtime layer, and `npm ci` 
 does not fetch browsers. Runs against the existing Herd host; a seeded throwaway database was considered and 
 rejected as setup cost with no CI to amortise it. Browsers: `chromium` + `firefox` + `webkit` always, 
 `msedge` and `chrome` channels **skipped when absent** rather than failing. 

 Four scenarios and no more — mobile cart scroll at 375×812, occasion filter pruning, password-reset link 
 absent + URL 404, and a cross-browser smoke over home/catalog/product/cart asserting no console errors and 
 no blank rendered text. **No payment flow**: driving the Revolut widget from Playwright is the flakiest 
 thing available to us, and item 5 is answered by the audit instead. 

 **Audit deliverable:** `docs/2026-09-20-qa-audit.md` (tracked, unlike `.myNotes/`) — it is the durable answer 
 to "do we have payment-error tests?" and the next person needs to find it. 

 **Branch:** `test/playwright-smoke-and-qa-audit`, last — the other three want to be merged first so the 
 regression locks have something real to assert against.

Back