Skip to content

Commit

Permalink
#560 - test: attempt to fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed Jan 2, 2025
1 parent 3cefc3d commit 2ac0ae3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def test_scenario_user_edits_multi_page_destruction_list(self):
await self.then.page_should_contain_text(page, "ZAAK-200")

# Add "ZAAK-100"
await self.when.user_clicks_button(page, "Bewerken", 1)
await self.when.user_clicks_button(page, "Bewerken", 2)
await self.then.path_should_be(page, f"/destruction-lists/{str(destruction_list.uuid)}/edit?page=1&is_editing=true")

await self.when.user_clicks_button(page, "2")
Expand All @@ -66,7 +66,7 @@ async def test_scenario_user_edits_multi_page_destruction_list(self):
await self.then.page_should_contain_text(page, "ZAAK-100")

# Remove "ZAAK-100"
await self.when.user_clicks_button(page, "Bewerken", 1)
await self.when.user_clicks_button(page, "Bewerken", 2)
await self.then.path_should_be(page, f"/destruction-lists/{str(destruction_list.uuid)}/edit?page=1&is_editing=true")

await self.when.user_clicks_button(page, "2")
Expand Down Expand Up @@ -171,7 +171,7 @@ def create_data():

await self.when.user_clicks_button(page, self.destruction_list.name)
await self.then.path_should_be(page, "/destruction-lists/00000000-0000-0000-0000-000000000000/edit")
await self.when.user_clicks_button(page, "Bewerken")
await self.when.user_clicks_button(page, "Bewerken", 1)
await self.then.path_should_be(page, "/destruction-lists/00000000-0000-0000-0000-000000000000/edit?page=1&is_editing=true")
# Initially the filters are for all zaaktypes
await self.then.zaaktype_filters_are(page, [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def test_scenario_user_cancels_filtered_edit_mode(self):
await self.when.user_clicks_button(page, "Destruction list to edit")
await self.then.path_should_be(page, "/destruction-lists/00000000-0000-0000-0000-000000000000/edit")
await self.then.page_should_contain_text(page, "Zaak-")
await self.when.user_clicks_button(page, "Bewerken", 1)
await self.when.user_clicks_button(page, "Bewerken", 2)
await self.then.path_should_be(page, "/destruction-lists/00000000-0000-0000-0000-000000000000/edit?page=1&is_editing=true")
await self.when.user_fills_form_field(page, "Identificatie", "non-matching-identifier", "textbox")

Expand Down

0 comments on commit 2ac0ae3

Please sign in to comment.