Merge pull request #39 from status-im/boarding_modal

chore(tst_get_started_modal.qml): enhance tests
This commit is contained in:
anastasiyaig 2021-10-26 15:23:05 +03:00 committed by GitHub
commit 89c14599dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -29,14 +29,15 @@ WindowTestCase {
}
function test_case2_BeforeGetStartedModal_button_disabled() {
function test_case2_BeforeGetStartedModal_button_ui() {
var beforeGetStartedModal = popupComponent.createObject(window)
beforeGetStartedModal.open()
var getStartedButton = findChild(beforeGetStartedModal, "getStartedStatusButton")
print (getStartedButton)
mouseClick(getStartedButton, getStartedButton.width/2, getStartedButton.height/2, Qt.LeftButton)
verify(!getStartedButton.enabled, "Get Started Button is enabled")
compare(getStartedButton.width, 130, "getStartedButton width should be 130 px")
compare(getStartedButton.height, 44, "getStartedButton height should be 44 px")
beforeGetStartedModal.destroy()
}