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