docs+test: phase 4 wrap-up (platform-v2 step 4.99)
- Pack README: CS-3 now says orders are queued by id and priced on sync, refused lines are shown, and no request a screen waits for may hang; rows for the waiter's texts / colours guards and the table, ordering and bookings pages. - run-all: the waiter suite's label lists what it covers. - waiter.mjs: the language check waits for the profile save (the screen changes first). - android.mjs: the "server really down" check accepts the offline screen in place of the app (the start-up data failing shows it there since the bootstrap time limit), not only on /offline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -266,7 +266,8 @@ try {
|
||||
await a.getByRole('button', { name: 'demo_maria' }).first().click({ timeout: 10_000 })
|
||||
await a.getByTestId('menu-language-el').click()
|
||||
const greek = await waitFor(async () => (await navText()).includes('Τραπέζια'), 8000, 300)
|
||||
const me = await api('GET', '/api/auth/me', { token: tokenA })
|
||||
// the screen changes first, the profile is saved right after: wait for it
|
||||
const me = await waitFor(async () => { const u = await api('GET', '/api/auth/me', { token: tokenA }); return u.language === 'el' && u }, 8000, 300) || {}
|
||||
r.check('4.5: menu → Ελληνικά: the screen turns Greek at once and it is saved for the person', !!greek && me.language === 'el', me.language)
|
||||
await a.reload()
|
||||
r.check('4.5: …still Greek after a reload', !!(await waitFor(async () => (await navText()).includes('Τραπέζια'), 15_000, 500)))
|
||||
|
||||
Reference in New Issue
Block a user