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:
@@ -217,7 +217,9 @@ async function rediscovery() {
|
||||
|
||||
await backend.stop()
|
||||
v = await stale(v)
|
||||
const offlineShown = await onScreen(async vv => (await vv.evaluate('location.pathname')) === '/offline', 45_000)
|
||||
// the offline screen: its own route, or in place of the app when the start-up data can't load (4.6)
|
||||
const offlineShown = await onScreen(async vv => (await vv.evaluate('location.pathname')) === '/offline'
|
||||
|| (await vv.evaluate("!!document.querySelector('#root') && document.body.innerText.includes('Search the network')")), 45_000)
|
||||
r.check('server really down: saved address untouched', (await venuesState(v)).venues['test-site-1'].baseUrl.includes('.99:'))
|
||||
r.check('server really down: offline screen', !!offlineShown, await v.evaluate('location.pathname + " | " + document.body.innerText.slice(0, 200)').catch(e => String(e)))
|
||||
await v.evaluate("[...document.querySelectorAll('button')].find(e => e.textContent.includes('Search the network')).click()")
|
||||
|
||||
Reference in New Issue
Block a user