mirror of
https://github.com/status-im/desktop-ui-tests.git
synced 2025-02-16 14:46:33 +00:00
test for pin counter added
This commit is contained in:
parent
878e1dd0a6
commit
ad2b08253d
@ -49,7 +49,7 @@ WindowTestCase {
|
|||||||
function test_case1_statusChatInfoButton_clicked() {
|
function test_case1_statusChatInfoButton_clicked() {
|
||||||
|
|
||||||
var statusChatInfoButton = popupComponent.createObject(window)
|
var statusChatInfoButton = popupComponent.createObject(window)
|
||||||
statusChatInfoButton.title = "Status Chat Info Button"
|
statusChatInfoButton.title = "Status-Chat-Info-Button"
|
||||||
wait(2000)
|
wait(2000)
|
||||||
statusChatInfoButtonClickedSpy.target = statusChatInfoButton
|
statusChatInfoButtonClickedSpy.target = statusChatInfoButton
|
||||||
compare(statusChatInfoButtonClickedSpy.count, 0)
|
compare(statusChatInfoButtonClickedSpy.count, 0)
|
||||||
@ -73,5 +73,22 @@ WindowTestCase {
|
|||||||
statusChatInfoButton.destroy()
|
statusChatInfoButton.destroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function test_case3_statusChatInfoButton_pinned() {
|
||||||
|
|
||||||
|
var statusChatInfoButton = popupComponent.createObject(window)
|
||||||
|
statusChatInfoButton.title = "#community-channel"
|
||||||
|
statusChatInfoButton.muted = false
|
||||||
|
statusChatInfoButton.pinnedMessagesCount = 2
|
||||||
|
wait(2000)
|
||||||
|
var pinButtonCounter = helpers.getObjectByObjectName(statusChatInfoButton, "pinMessagesCounter")
|
||||||
|
pinnedMessagesClickedSpy.target = statusChatInfoButton
|
||||||
|
compare(pinnedMessagesClickedSpy.count, 0)
|
||||||
|
mouseClick(pinButtonCounter, 1, 1, Qt.LeftButton)
|
||||||
|
wait(2000)
|
||||||
|
compare(pinnedMessagesClickedSpy.count, 1, "Pin counter is not clicked")
|
||||||
|
statusChatInfoButton.destroy()
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user