diff --git a/tests/tests_tui/test_tui_create_folders.py b/tests/tests_tui/test_tui_create_folders.py index f9284ae8..c5d4045d 100644 --- a/tests/tests_tui/test_tui_create_folders.py +++ b/tests/tests_tui/test_tui_create_folders.py @@ -389,9 +389,9 @@ async def test_name_template_next_sub_or_ses_and_validation( pilot, "#create_folders_create_folders_button" ) - pilot.app.screen.query_one( + assert pilot.app.screen.query_one( "#messagebox_message_label" - ).renderable = ( + ).renderable == ( "The name: sub-0001 does not match the template: sub-\\d\\d\\d" ) await self.close_messagebox(pilot) diff --git a/tests/tests_tui/tui_base.py b/tests/tests_tui/tui_base.py index 6c6faf15..3ed4d7a1 100644 --- a/tests/tests_tui/tui_base.py +++ b/tests/tests_tui/tui_base.py @@ -182,6 +182,7 @@ async def check_and_click_onto_existing_project(self, pilot, project_name): Perform general TUI checks during the navigation. """ await pilot.click("#mainwindow_existing_project_button") + await pilot.pause() assert isinstance(pilot.app.screen, ProjectSelectorScreen) assert len(pilot.app.screen.project_names) == 1