tests: BeforeYouGetStarted.qml
This commit is contained in:
parent
44eff234f8
commit
d3ed4bf4f5
|
@ -0,0 +1,53 @@
|
|||
import QtQuick 2.14
|
||||
import QtQuick.Window 2.14
|
||||
import QtTest 1.14
|
||||
|
||||
import "base"
|
||||
import "status-desktop/ui/onboarding" as DesktopComponents
|
||||
|
||||
|
||||
WindowTestCase {
|
||||
name: "GetStartedModal"
|
||||
when: windowShown
|
||||
|
||||
Helpers { id: helpers }
|
||||
|
||||
|
||||
ChatsModelData {
|
||||
id: chatsModel
|
||||
}
|
||||
|
||||
|
||||
Component {
|
||||
id: popupComponent
|
||||
DesktopComponents.BeforeGetStartedModal {
|
||||
id: beforeGetStartedModal
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function initTestCase() {
|
||||
window.show()
|
||||
}
|
||||
|
||||
function cleanupTestCase() {
|
||||
window.close()
|
||||
}
|
||||
|
||||
|
||||
function test_case_BeforeGetStartedModal_height_width() {
|
||||
|
||||
var beforeGetStartedModal = popupComponent.createObject(window)
|
||||
beforeGetStartedModal.open()
|
||||
beforeGetStartedModal.title = "Before you get started ..."
|
||||
wait(2000)
|
||||
compare(beforeGetStartedModal.height, 318, "height should be 318")
|
||||
compare(beforeGetStartedModal.width, 480, "width should be 480")
|
||||
beforeGetStartedModal.destroy()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -13,6 +13,7 @@ DISTFILES += \
|
|||
base/WindowTestCase.qml \
|
||||
tst_Modals.qml \
|
||||
tst_choose_chat_name_modal.qml \
|
||||
tst_get_started_modal.qml \
|
||||
tst_initialtest.qml
|
||||
|
||||
DISTFILES += $$files("status-desktop/ui/*", true)
|
||||
|
|
Loading…
Reference in New Issue