chore(tst_get_started_modal.qml): enhance tests

This commit is contained in:
Anastasiya S 2021-10-26 15:22:10 +03:00
parent 508d7d1c83
commit e64075b621
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()
}