Keep lobby settings next to the guide when install controls appear (#413)

This commit is contained in:
sganggs committed 2026-10-09 23:57:05 +08:00
1 parent f3658a0dd4
commit 77cd29f07a
3 files changed
+9 -3

No files matched your search

+4 -2
View File
@@ -61,8 +61,10 @@ describe('the settings entry of the lobby and the room', { skip: !ENABLED && 'se
assert.match(text, /设置/);
assert.match(text, /背景音乐/);
assert.match(text, /快捷键/);
assert.doesNotMatch(text, /棋盘/, 'no board-style option (declined)');
assert.doesNotMatch(text, /后台/, 'no background-music option (declined)');
// The text-size hint mentions the unchanged board scale; the declined options concern controls, not help copy.
const optionLabels = await page.$$eval('.modal .set-row__label', (nodes) => nodes.map((n) => n.textContent).join(' '));
assert.doesNotMatch(optionLabels, /棋盘/, 'no board-style option (declined)');
assert.doesNotMatch(optionLabels, /后台/, 'no background-music option (declined)');
await page.keyboard.press('Escape');
await sleep(300);
assert.equal(await modalText(page), null, 'Esc closes it');