Skip to content

Commit

Permalink
Merge pull request #5951 from emilghittasv/fix-playwright-user-agent-…
Browse files Browse the repository at this point in the history
…verification-aaq-test

Playwright - Fix User Agent AAQ test flakiness
  • Loading branch information
emilghittasv authored Apr 10, 2024
2 parents f2693f3 + 4e6f521 commit 8ec0709
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class QuestionPage(BasePage):

# Question details locators.
__question_details_button = "//button[@aria-controls='question-details']"
__more_system_details_modal = "//div[normalize-space(@class)='mzp-c-modal']"
__more_system_details_option = "//a[@id='show-more-details']"
__close_additional_system_details_button = "//div[@class='mzp-c-modal-close']/button"
__user_agent_information = "//div[@class='about-support']//li"
Expand Down Expand Up @@ -320,6 +321,7 @@ def _get_more_information_locator(self) -> Locator:
return super()._get_element_locator(self.__more_information_panel_header)

def _get_user_agent_information(self) -> str:
super()._wait_for_selector(self.__more_system_details_modal)
return super()._get_text_of_element(self.__user_agent_information)

def _get_system_details_information(self) -> list[str]:
Expand Down

0 comments on commit 8ec0709

Please sign in to comment.