Skip to content

Commit

Permalink
tests: fix a flaky test with
Browse files Browse the repository at this point in the history
  • Loading branch information
EwenKorr committed Oct 22, 2024
1 parent ec724fb commit 21246c1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/www/employee_record_views/test_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,16 @@ def test_employee_records_with_nir_associated_to_other(self, client, snapshot):
parse_response_to_soup(
response,
selector=".employee-records-list .c-box--results__footer",
replace_in_attr=[self.employee_record, self.job_application],
replace_in_attr=[
(
"href",
f"https://tally.so/r/wzxQlg?employeerecord={self.employee_record.pk}&jobapplication={self.job_application.pk}",
(
"https://tally.so/r/wzxQlg"
"?employeerecord=[PK of EmployeeRecord]&jobapplication=[PK of JobApplication]"
),
)
],
)
) == snapshot(name="action")

Expand Down

0 comments on commit 21246c1

Please sign in to comment.