fix(client): usable GM column and phone HUD (#89)
This commit is contained in:
@@ -93,7 +93,8 @@ test('first sign-in asks once for a name and shows a taken name', { timeout: 120
|
||||
await waitForVisible(page, '#hud')
|
||||
await waitForVisible(page, '#stage canvas')
|
||||
await waitForText(page, '#me', /^Bob$/)
|
||||
await waitForText(page, '#roster', /Bob/)
|
||||
// The HUD roster lists the other players; this connection's own name is #me.
|
||||
await waitForText(page, '#roster', /GM/)
|
||||
await waitForBadge(page, 'connected')
|
||||
await waitForHidden(page, '#name')
|
||||
|
||||
@@ -188,7 +189,7 @@ test('a killed server under a live player: badge reconnecting, then a full resyn
|
||||
assert.equal(full('encountered')?.full, true, 'the encountered list comes back full')
|
||||
assert.ok(after.some(frame => frame.t === 'token'), 'tokens come back')
|
||||
assert.ok(after.some(frame => frame.t === 'vision'), 'fog/vision comes back')
|
||||
assert.match(await page.textContent('#roster'), /Ann/)
|
||||
assert.match(await page.textContent('#roster'), /GM/)
|
||||
assert.equal(await page.locator('#hud').isVisible(), true)
|
||||
} finally {
|
||||
if (restarted) await stopServer(restarted)
|
||||
@@ -274,7 +275,7 @@ test('two connections of one player are both live and stay in sync', { timeout:
|
||||
assert.equal(renamed.ok, true)
|
||||
gm.ws.close()
|
||||
for (const view of [first, second]) {
|
||||
await waitForText(view.page, '#roster', /Dee Two/)
|
||||
await waitForText(view.page, '#me', /Dee Two/)
|
||||
await waitForBadge(view.page, 'connected')
|
||||
}
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user