This commit is contained in:
2026-10-19 02:34:50 +07:00
parent 06af1e047d
commit e2f8a3302e
15 changed files with 109 additions and 32 deletions
+3 -3
View File
@@ -575,11 +575,11 @@ app.whenReady().then(async () => {
}, `scene ${mode} ready`)
for (let index = 0; index < 8; index++) {
await command({ action: 'step', index })
const s = await sceneReady(index + 1)
const s = await sceneReady([1, 2, 8, 4, 8, 6, 7, 8][index])
modes.push(s.scene.mode)
assert.equal(s.scene.stepIndex, index)
assert.equal(s.channels.main.desired, 'stopped')
assert.equal(s.channels.music.desired, 'playing')
assert.equal(s.channels.music.desired, [2, 4].includes(s.scene.mode) ? 'paused' : 'playing')
assert.equal(
await inspect('document.querySelectorAll("button,input,textarea,select").length'),
0,
@@ -615,7 +615,7 @@ app.whenReady().then(async () => {
}
await poll(async () => (await state()).channels.main.volume === 42, 'plan media volume')
assert.equal((await state()).channels.main.desired, 'paused')
assert.equal((await state()).channels.music.desired, 'playing')
assert.equal((await state()).channels.music.desired, 'paused')
await clickMedia('Продолжить')
await poll(
async () => (await state()).channels.main.status === 'playing',