def test_go_to_population(self, bp: BasePage): """ Tests navigating to the Population page. Should not be run first, because the site loads this page as the default. :return: None. """ bp.go_to_population() assert bp.population_displayed() bp.util.sleep(3)
def test_toggle_pop_stats(self, bp: BasePage, pp: PopulationPage): """ Tests toggling the Population Statistics window on and off. :return: None. """ bp.go_to_population() pp.show_pop_stats() assert pp.pop_stats_displayed() pp.hide_pop_stats() assert not pp.pop_stats_displayed() pp.show_pop_stats() assert pp.pop_stats_displayed()
def test_toggle_env_settings(self, bp: BasePage, pp: PopulationPage): """ Tests toggling the Environmental Settings panel on and off. :return: None. """ bp.go_to_population() pp.show_env_settings() assert pp.env_settings_displayed() assert not pp.grid_displayed() pp.hide_env_settings() assert not pp.env_settings_displayed() assert pp.grid_displayed() pp.show_env_settings() assert pp.env_settings_displayed() assert not pp.grid_displayed()