@@ -360,6 +360,44 @@ async def test_bad_configs_screen_input(self, empty_project_paths):
360360 )
361361 await pilot .pause ()
362362
363+ # -------------------------------------------------------------------------
364+ # Test project name is number
365+ # -------------------------------------------------------------------------
366+
367+ @pytest .mark .asyncio
368+ async def test_project_name_is_number (self ):
369+ """
370+ Make a project that has a number name, and check the project screen
371+ can be loaded.
372+ """
373+ app = TuiApp ()
374+ async with app .run_test (size = self .tui_size ()) as pilot :
375+
376+ # Set up a project with a numerical project name
377+ project_name = "123"
378+
379+ await self .scroll_to_click_pause (
380+ pilot , "#mainwindow_new_project_button"
381+ )
382+
383+ await self .fill_input (pilot , "#configs_name_input" , project_name )
384+ await self .fill_input (pilot , "#configs_local_path_input" , "a" )
385+ await self .fill_input (pilot , "#configs_central_path_input" , "b" )
386+ await self .scroll_to_click_pause (
387+ pilot , "#configs_save_configs_button"
388+ )
389+
390+ # Go back to main menu and load the project screen
391+ await self .close_messagebox (pilot )
392+
393+ await self .scroll_to_click_pause (pilot , "#all_main_menu_buttons" )
394+
395+ await self .check_and_click_onto_existing_project (
396+ pilot , project_name
397+ )
398+
399+ await pilot .pause ()
400+
363401 # -------------------------------------------------------------------------
364402 # Helpers
365403 # -------------------------------------------------------------------------
0 commit comments