Skip to content

Commit

Permalink
tests: snapshot the whole job seekers table
Browse files Browse the repository at this point in the history
since they will be changed in next commit
  • Loading branch information
xavfernandez committed Feb 14, 2025
1 parent f84532d commit 899889b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions tests/www/job_seekers_views/__snapshots__/test_list.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,20 @@
]),
})
# ---
# name: test_multiple[job seekers list tbody]
# name: test_multiple[job seekers list table]
'''
<tbody>
<table class="table table-hover">
<caption class="visually-hidden">Liste des candidats</caption>
<thead>
<tr>
<th scope="col">Prénom NOM</th>
<th scope="col">Statut du PASS IAE</th>
<th scope="col">Nombre de candidatures</th>
<th scope="col">Dernière mise à jour de candidature</th>
<th class="text-end w-50px" scope="col"></th>
</tr>
</thead>
<tbody>

<tr>
<td>
Expand Down Expand Up @@ -618,6 +629,7 @@
</tr>

</tbody>
</table>
'''
# ---
# name: test_multiple_with_job_seekers_created_by_organization.1
Expand Down
2 changes: 1 addition & 1 deletion tests/www/job_seekers_views/test_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def test_multiple(client, snapshot):
client.force_login(prescriber)
with assertSnapshotQueries(snapshot(name="job seekers list SQL")):
response = client.get(url)
assert str(parse_response_to_soup(response, selector="tbody")) == snapshot(name="job seekers list tbody")
assert str(parse_response_to_soup(response, selector="table")) == snapshot(name="job seekers list table")

# Address is in search URL
for i, application in enumerate([job_app, job_app2, job_app3]):
Expand Down

0 comments on commit 899889b

Please sign in to comment.