mirror of
https://github.com/status-im/desktop-ui-tests.git
synced 2025-02-05 09:24:19 +00:00
improve tests
This commit is contained in:
parent
d6b65f733c
commit
b76c1da109
@ -37,7 +37,7 @@ WindowTestCase {
|
||||
}
|
||||
|
||||
|
||||
function test_case_BeforeGetStartedModal_height_width() {
|
||||
function test_case1_BeforeGetStartedModal_height_width() {
|
||||
|
||||
var beforeGetStartedModal = popupComponent.createObject(window)
|
||||
beforeGetStartedModal.open()
|
||||
@ -45,15 +45,23 @@ WindowTestCase {
|
||||
wait(2000)
|
||||
compare(beforeGetStartedModal.height, 318, "height should be 318")
|
||||
compare(beforeGetStartedModal.width, 480, "width should be 480")
|
||||
|
||||
var getStartedButton = Helpers
|
||||
.getObjectByObjectName(beforeGetStartedModal, "getStartedBtn")
|
||||
verify(!!getStartedButton, "Get Started Button is not present")
|
||||
print (getStartedButton)
|
||||
|
||||
beforeGetStartedModal.destroy()
|
||||
}
|
||||
|
||||
|
||||
function test_case2_BeforeGetStartedModal_button() {
|
||||
|
||||
var beforeGetStartedModal = popupComponent.createObject(window)
|
||||
beforeGetStartedModal.open()
|
||||
beforeGetStartedModal.title = "Before you get started ..."
|
||||
wait(2000)
|
||||
var getStartedButtonExists = helpers.checkIfItemExists(beforeGetStartedModal, 340, 260)
|
||||
verify(getStartedButtonExists, true)
|
||||
beforeGetStartedModal.destroy()
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user