This commit is contained in:
2026-10-18 15:07:17 +07:00
parent 913b237cb8
commit e881f10857
3 changed files with 21 additions and 25 deletions
+11
View File
@@ -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(