From 4f17c1bb76e18a61e1e0f8204e49a1d8194ec857 Mon Sep 17 00:00:00 2001 From: Anastasiya S Date: Wed, 20 Oct 2021 15:03:14 +0300 Subject: [PATCH] chore(tst_statusChatInfoButton.qml): updated object names --- tst_statusChatInfoButton.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tst_statusChatInfoButton.qml b/tst_statusChatInfoButton.qml index 6a1f166..0f82e85 100644 --- a/tst_statusChatInfoButton.qml +++ b/tst_statusChatInfoButton.qml @@ -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)