File tree 2 files changed +3
-7
lines changed
backend/src/openarchiefbeheer
destruction/tests/e2e/features
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,7 @@ async def test_scenario_reviewer_cannot_create_list(self):
62
62
63
63
await self .when .reviewer_logs_in (page )
64
64
await self .then .path_should_be (page , "/destruction-lists" )
65
-
66
- await self .when .user_clicks_button (page , "Vernietigingslijst opstellen" )
67
- await self .then .path_should_be (page , "/login?next=/destruction-lists/create" )
65
+ await self .then .not_ .page_should_contain_text (page , "Vernietigingslijst opstellen" )
68
66
69
67
async def test_scenario_archivist_cannot_create_list (self ):
70
68
async with browser_page () as page :
@@ -73,9 +71,7 @@ async def test_scenario_archivist_cannot_create_list(self):
73
71
74
72
await self .when .archivist_logs_in (page )
75
73
await self .then .path_should_be (page , "/destruction-lists" )
76
-
77
- await self .when .user_clicks_button (page , "Vernietigingslijst opstellen" )
78
- await self .then .path_should_be (page , "/login?next=/destruction-lists/create" )
74
+ await self .then .not_ .page_should_contain_text (page , "Vernietigingslijst opstellen" )
79
75
80
76
async def test_zaaktype_filters_on_create_page (self ):
81
77
Original file line number Diff line number Diff line change @@ -479,7 +479,7 @@ def get_number_of_items():
479
479
480
480
async def page_should_contain_text (self , page , text ):
481
481
locator = page .get_by_text (text ).nth (0 )
482
- await expect (locator ).to_be_attached ()
482
+ await expect (locator ).to_be_visible ()
483
483
484
484
async def path_should_be (self , page , path ):
485
485
await self .url_should_be (page , self .testcase .live_server_url + path )
You can’t perform that action at this time.
0 commit comments