Merge pull request #27 from status-im/tst_chatInfoButton

Chore(tst_statusChatInfoButton.qml): updated object names
This commit is contained in:
anastasiyaig 2021-10-20 15:10:01 +03:00 committed by GitHub
commit f701240610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -54,7 +54,7 @@ WindowTestCase {
statusChatInfoButton.title = "#public"
statusChatInfoButton.muted = true
wait(2000)
var mutedButton = helpers.getObjectByObjectName(statusChatInfoButton, "muted")
var mutedButton = helpers.getObjectByObjectName(statusChatInfoButton, "mutedIcon")
statusChatInfoButtonUnmuteSpy.target = statusChatInfoButton
compare(statusChatInfoButtonUnmuteSpy.count, 0)
mouseClick(mutedButton, 2, 2, Qt.LeftButton)
@ -67,10 +67,9 @@ WindowTestCase {
var statusChatInfoButton = popupComponent.createObject(window)
statusChatInfoButton.title = "#community-channel"
statusChatInfoButton.muted = false
statusChatInfoButton.pinnedMessagesCount = 2
wait(2000)
var pinButtonCounter = helpers.getObjectByObjectName(statusChatInfoButton, "pinMessagesCounter")
var pinButtonCounter = helpers.getObjectByObjectName(statusChatInfoButton, "pinMessagesCounterSensor")
pinnedMessagesClickedSpy.target = statusChatInfoButton
compare(pinnedMessagesClickedSpy.count, 0)
mouseClick(pinButtonCounter, 1, 1, Qt.LeftButton)