up
This commit is contained in:
+3
-3
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user