This commit is contained in:
2026-10-17 20:57:16 +07:00
parent 40456eebf1
commit 1d4028b183
13 changed files with 849 additions and 48 deletions
+15
View File
@@ -148,6 +148,21 @@ module.exports = async function onlineSmoke({
assert.equal((await state()).channels.main.desired, 'playing')
version++
await poll(async () => (await state()).channels.main.status === 'stopped', 'new remote stop')
const { powerMonitor } = require('electron')
powerMonitor.emit('suspend')
assert.equal((await state()).outputOpen, false)
powerMonitor.emit('resume')
currentCommand = 'SCREEN_COMMAND_PLAY'
version++
const beforeReopenPolls = polls
await evaluate(`window.screenBridge.show(${displayId})`)
await poll(() => polls > beforeReopenPolls, 'post-incident baseline')
assert.equal((await state()).channels.main.desired, 'stopped')
version++
await poll(
async () => (await state()).channels.main.status === 'playing',
'new command after incident',
)
await act({ action: 'results' })
assert.equal((await state()).results.teams[0].name, 'Детективы')
assert.equal(JSON.stringify(await state()).includes('PRIVATE'), false)