def test_input_dishsize_str(self, bp: BasePage, pp: PopulationPage): """ Tests that crashes and unexpected behaviors do not occur if a non-numeric string is given to the dish size boxes. :return: None. """ # Edit dish size with string values. pp.show_env_settings() pp.edit_dish_cols("sample text") pp.hide_env_settings() assert pp.check_size_cells_error() # Add an organism to the experiment and try to run it. bp.add_ancestor_to_dish() pp.run_from_pop() # Wait for a short period so that response to run attempt occurs. bp.util.sleep(3)
def test_input_dishsize_zero( self, bp: BasePage, pp: PopulationPage, ): """ Tests that crashes and unexpected behaviors do not occur if a dish size dimension is set to 0. :return: None. """ # Edit dish size with value zero. pp.show_env_settings() pp.edit_dish_cols("0") pp.hide_env_settings() assert pp.check_size_cells_error() # Add an organism to the experiment and try to run it. bp.add_ancestor_to_dish() pp.run_from_pop() # Wait for a short period so that response to run attempt occurs. bp.util.sleep(3)