Merge pull request #22 from status-im/mute_event_chat_button

added muted event
This commit is contained in:
anastasiyaig 2021-10-19 14:24:31 +03:00 committed by GitHub
commit 878e1dd0a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()
}
}