From e64075b6216cb0fabaf35aee7b6988055c7bf709 Mon Sep 17 00:00:00 2001 From: Anastasiya S Date: Tue, 26 Oct 2021 15:22:10 +0300 Subject: [PATCH] chore(tst_get_started_modal.qml): enhance tests --- tst_get_started_modal.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tst_get_started_modal.qml b/tst_get_started_modal.qml index d783d13..0c945a4 100644 --- a/tst_get_started_modal.qml +++ b/tst_get_started_modal.qml @@ -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() }