Skip to content

Commit

Permalink
GH-14 # Fix integration test failing on duplicate elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-C committed Aug 11, 2024
1 parent 17260de commit 9d88a92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/playwright_end_to_end/test_home_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def test_latest_urls(home_page: Page):
result = home_page.get_by_text("Jarm hash is:")
expect(result).to_be_hidden() # sanity check

latest_url_title = home_page.get_by_text(HOST_TO_SCAN)
latest_url_result = home_page.get_by_text(URL_EXPECTED_JARM_RESULT)
latest_url_title = home_page.get_by_text(HOST_TO_SCAN).first
latest_url_result = home_page.get_by_text(URL_EXPECTED_JARM_RESULT).first
expect(latest_url_title).to_be_visible()
expect(latest_url_result).to_be_hidden()
latest_url_title.click()
Expand All @@ -71,8 +71,8 @@ def test_latest_urls_for_specific_port(home_page: Page):
result = home_page.get_by_text("Jarm hash is:")
expect(result).to_be_hidden() # sanity check

latest_url_title = home_page.get_by_text(HOST_TO_SCAN)
latest_url_result = home_page.get_by_text(URL_EXPECTED_JARM_RESULT)
latest_url_title = home_page.get_by_text(HOST_TO_SCAN).first
latest_url_result = home_page.get_by_text(URL_EXPECTED_JARM_RESULT).first
expect(latest_url_title).to_be_visible()
expect(latest_url_result).to_be_hidden()
latest_url_title.click()
Expand Down

0 comments on commit 9d88a92

Please sign in to comment.