added muted event

This commit is contained in:
Anastasiya S 2021-10-19 14:19:03 +03:00
parent 926bbc4292
commit 6dcfc5eaed
1 changed files with 14 additions and 0 deletions

View File

@ -59,5 +59,19 @@ WindowTestCase {
statusChatInfoButton.destroy()
}
function test_case2_statusChatInfoButton_unmuted() {
var statusChatInfoButton = popupComponent.createObject(window)
statusChatInfoButton.title = "#public"
statusChatInfoButton.muted = true
wait(2000)
var mutedButton = helpers.getObjectByObjectName(statusChatInfoButton, "muted")
statusChatInfoButtonUnmuteSpy.target = statusChatInfoButton
compare(statusChatInfoButtonUnmuteSpy.count, 0)
mouseClick(mutedButton, 2, 2, Qt.LeftButton)
wait(2000)
compare(statusChatInfoButtonUnmuteSpy.count, 1, "Muted button is not clicked")
statusChatInfoButton.destroy()
}
}