Skip to content

Commit

Permalink
more adjustments to locator strictness (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
omehes authored Jun 6, 2024
1 parent 175f660 commit 011ec83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app/tests/ui/pages/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def job_id_dialog_is_visible(self):

@property
def job_id_dialog_title(self):
return self.page.locator("div.mdc-dialog__header")
return self.page.locator("div.mdc-dialog__header").first

@property
def job_id_dialog_close_button(self):
Expand Down Expand Up @@ -300,7 +300,7 @@ def job_type_href(self):

@property
def version_sha(self):
return self.page.locator("tr:nth-child(1) > td:nth-child(5)")
return self.page.locator("tr:nth-child(1) > td:nth-child(5)").first

@property
def next_job_id(self):
Expand Down

0 comments on commit 011ec83

Please sign in to comment.