Skip to content

Commit

Permalink
chore: add verifications when checking checkboxes on modal
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiyaig authored and jrainville committed Aug 26, 2024
1 parent b4d0c83 commit 4f0f336
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/gui/components/onboarding/before_started_popup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class BeforeStartedPopUp(BasePopup):
def __init__(self):
super(BeforeStartedPopUp, self).__init__()
self._acknowledge_checkbox = CheckBox(names.acknowledge_checkbox)
self._acknowledgeIndicator = QObject(names.acknowledgeIndicator)
self._terms_of_use_checkBox = CheckBox(names.termsOfUseCheckBox_StatusCheckBox)
self._acknowledgeIndicator = QObject(names.acknowledgeIndicator)
self._termsOfUseIndicator = QObject(names.termsOfUseIndicator)
self._get_started_button = Button(names.getStartedStatusButton_StatusButton)
self._terms_of_use_link = QObject(names.termsOfUseLink_StatusBaseText)
Expand All @@ -27,7 +27,9 @@ def is_visible(self) -> bool:
@allure.step('Allow all and get started')
def get_started(self):
self._acknowledgeIndicator.click()
assert self._acknowledge_checkbox.checkState != 0, f"Acknowledge checkbox is not checked"
self._termsOfUseIndicator.click()
assert self._terms_of_use_checkBox.checkState != 0, f"ToU checkbox is not checked"
assert self._terms_of_use_link.is_visible, f"Terms of use link is missing"
assert self._privacy_policy_link.is_visible, f"Privacy Policy link is missing"
self._get_started_button.click()
Expand Down

0 comments on commit 4f0f336

Please sign in to comment.