chore(tst_get_started_modal.qml): enhance tests
This commit is contained in:
parent
4ade2c7db9
commit
6a60c0a254
|
@ -33,8 +33,8 @@ WindowTestCase {
|
||||||
|
|
||||||
var beforeGetStartedModal = popupComponent.createObject(window)
|
var beforeGetStartedModal = popupComponent.createObject(window)
|
||||||
beforeGetStartedModal.open()
|
beforeGetStartedModal.open()
|
||||||
legacyHelpers.target = beforeGetStartedModal
|
var getStartedButton = findChild(beforeGetStartedModal, "getStartedStatusButton")
|
||||||
var getStartedButton = legacyHelpers.findInFooter("getStartedStatusButton")
|
print (getStartedButton)
|
||||||
mouseClick(getStartedButton, getStartedButton.width/2, getStartedButton.height/2, Qt.LeftButton)
|
mouseClick(getStartedButton, getStartedButton.width/2, getStartedButton.height/2, Qt.LeftButton)
|
||||||
verify(!getStartedButton.enabled, "Get Started Button is enabled")
|
verify(!getStartedButton.enabled, "Get Started Button is enabled")
|
||||||
beforeGetStartedModal.destroy()
|
beforeGetStartedModal.destroy()
|
||||||
|
@ -48,8 +48,9 @@ WindowTestCase {
|
||||||
mouseClick(acknowledgeCheckBox, acknowledgeCheckBox.width/2, acknowledgeCheckBox.height/2, Qt.LeftButton)
|
mouseClick(acknowledgeCheckBox, acknowledgeCheckBox.width/2, acknowledgeCheckBox.height/2, Qt.LeftButton)
|
||||||
var termsOfUseCheckBox = legacyHelpers.findInContent("termsOfUseCheckBox")
|
var termsOfUseCheckBox = legacyHelpers.findInContent("termsOfUseCheckBox")
|
||||||
mouseClick(termsOfUseCheckBox, termsOfUseCheckBox.width/2, termsOfUseCheckBox.height/2, Qt.LeftButton)
|
mouseClick(termsOfUseCheckBox, termsOfUseCheckBox.width/2, termsOfUseCheckBox.height/2, Qt.LeftButton)
|
||||||
var getStartedButton = legacyHelpers.findInFooter("getStartedStatusButton")
|
var getStartedButton = findChild(beforeGetStartedModal, "getStartedStatusButton")
|
||||||
verify(!getStartedButton.enabled, "Get Started Button is enabled")
|
verify(getStartedButton.enabled, "Get Started Button is disabled")
|
||||||
|
wait(2000)
|
||||||
mouseClick(getStartedButton, getStartedButton.width/2, getStartedButton.height/2, Qt.LeftButton)
|
mouseClick(getStartedButton, getStartedButton.width/2, getStartedButton.height/2, Qt.LeftButton)
|
||||||
beforeGetStartedModal.destroy()
|
beforeGetStartedModal.destroy()
|
||||||
}
|
}
|
||||||
|
@ -57,15 +58,15 @@ WindowTestCase {
|
||||||
function test_case4_beforeGetStartedModal_TOU_click() {
|
function test_case4_beforeGetStartedModal_TOU_click() {
|
||||||
var beforeGetStartedModal = popupComponent.createObject(window)
|
var beforeGetStartedModal = popupComponent.createObject(window)
|
||||||
beforeGetStartedModal.open()
|
beforeGetStartedModal.open()
|
||||||
legacyHelpers.target = beforeGetStartedModal
|
//legacyHelpers.target = beforeGetStartedModal
|
||||||
var termsOfUseLink = legacyHelpers.findInContent("termsOfUseLink")
|
var termsOfUseLink = findChild(beforeGetStartedModal, "termsOfUseCheckBox")
|
||||||
mouseClick(termsOfUseLink, 2, 2, Qt.LeftButton)
|
mouseClick(termsOfUseLink, 2, 2, Qt.LeftButton)
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_case5_beforeGetStartedModal_privacy_policy_click() {
|
function test_case5_beforeGetStartedModal_privacy_policy_click() {
|
||||||
var beforeGetStartedModal = popupComponent.createObject(window)
|
var beforeGetStartedModal = popupComponent.createObject(window)
|
||||||
beforeGetStartedModal.open()
|
beforeGetStartedModal.open()
|
||||||
legacyHelpers.target = beforeGetStartedModal
|
//legacyHelpers.target = beforeGetStartedModal
|
||||||
var privacyPolicyLink = findChild(beforeGetStartedModal, "privacyPolicyLink")
|
var privacyPolicyLink = findChild(beforeGetStartedModal, "privacyPolicyLink")
|
||||||
mouseClick(privacyPolicyLink, 2, 2, Qt.LeftButton)
|
mouseClick(privacyPolicyLink, 2, 2, Qt.LeftButton)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue