up
This commit is contained in:
@@ -443,6 +443,17 @@ module.exports = async function onlineSmoke({
|
||||
async () => (await evaluate('window.screenBridge.onlineState()')).connection === 'connected',
|
||||
'HTTP baseline',
|
||||
)
|
||||
assert.equal(
|
||||
await evaluate(`(() => {
|
||||
const assignment = document.querySelector('[data-testid="sound-assignment"]')
|
||||
const card = assignment?.closest('.n-card')
|
||||
return card?.querySelector('.n-card-header__main')?.textContent.trim() === 'Игра'
|
||||
&& ['Назначить звук этому экрану', 'Отключить управление'].every(label =>
|
||||
!Array.from(document.querySelectorAll('.n-card')).find(c => c.querySelector('.n-card-header__main')?.textContent.trim() === 'Экран')?.textContent.includes(label))
|
||||
})()`),
|
||||
true,
|
||||
'server screen controls belong to game card',
|
||||
)
|
||||
await poll(
|
||||
() =>
|
||||
evaluate(
|
||||
|
||||
Reference in New Issue
Block a user