From 2ac0ae321f395a7ba88eccabae91a94c16ec36d1 Mon Sep 17 00:00:00 2001 From: Sven van de Scheur Date: Thu, 2 Jan 2025 10:51:47 +0100 Subject: [PATCH] :white_check_mark: #560 - test: attempt to fix the tests --- .../tests/e2e/features/test_feature_list_edit.py | 6 +++--- .../issues/test_290_closing_edit_mode_removes_filters.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/openarchiefbeheer/destruction/tests/e2e/features/test_feature_list_edit.py b/backend/src/openarchiefbeheer/destruction/tests/e2e/features/test_feature_list_edit.py index 6c83e7a50..be3f28125 100644 --- a/backend/src/openarchiefbeheer/destruction/tests/e2e/features/test_feature_list_edit.py +++ b/backend/src/openarchiefbeheer/destruction/tests/e2e/features/test_feature_list_edit.py @@ -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") @@ -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") @@ -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, [ diff --git a/backend/src/openarchiefbeheer/destruction/tests/e2e/issues/test_290_closing_edit_mode_removes_filters.py b/backend/src/openarchiefbeheer/destruction/tests/e2e/issues/test_290_closing_edit_mode_removes_filters.py index e14420926..50c009fb0 100644 --- a/backend/src/openarchiefbeheer/destruction/tests/e2e/issues/test_290_closing_edit_mode_removes_filters.py +++ b/backend/src/openarchiefbeheer/destruction/tests/e2e/issues/test_290_closing_edit_mode_removes_filters.py @@ -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")