Skip to content

Commit

Permalink
increased stability method check_already_subscribed_text
Browse files Browse the repository at this point in the history
  • Loading branch information
e-b-e-d-a committed Feb 7, 2025
1 parent 1342693 commit ecb8535
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/pages/main_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def input_email(self, email):

@allure.step("Check message, that user already subscribed, is visible")
def check_already_subscribed_text(self):
email_field = self.wait.until(EC.visibility_of_element_located(MainPage.email_input_field))
self.scroll_page_to_element(email_field)
self.wait.until(EC.presence_of_element_located(MainPage.subscription_notification_text)).is_displayed()

@allure.step("Click 'Ask me later' button")
Expand Down

0 comments on commit ecb8535

Please sign in to comment.