mirror of
https://github.com/status-im/desktop-ui-tests.git
synced 2025-01-28 21:45:38 +00:00
Merge pull request #22 from status-im/mute_event_chat_button
added muted event
This commit is contained in:
commit
878e1dd0a6
@ -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()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user