def test_check_header_user_settings_for_authorised_user(self, app_fs): """Test header user settings buttons for authorised user""" header = PageHeader(app_fs.driver, app_fs.adcm.url) header.click_account_button_in_header() header.check_account_popup() header.click_settings_link_in_acc_popup() header.wait_url_contains_path( AdminSettingsPage(app_fs.driver, app_fs.adcm.url).path) header.click_account_button_in_header() header.click_profile_link_in_acc_popup() header.wait_url_contains_path( ProfilePage(app_fs.driver, app_fs.adcm.url).path) header.click_account_button_in_header() header.click_logout_in_acc_popup() header.wait_url_contains_path( LoginPage(app_fs.driver, app_fs.adcm.url).path)
def test_header_tabs_for_authorised_user(self, app_fs): """Test header buttons for authorised user""" header = PageHeader(app_fs.driver, app_fs.adcm.url) header.click_arenadata_logo_in_header() intro_page = AdminIntroPage(app_fs.driver, app_fs.adcm.url) header.wait_url_contains_path(intro_page.path) header.click_clusters_tab_in_header() cluster_page = ClusterListPage(app_fs.driver, app_fs.adcm.url) header.wait_url_contains_path(cluster_page.path) header.click_hostproviders_tab_in_header() provider_page = ProviderListPage(app_fs.driver, app_fs.adcm.url) header.wait_url_contains_path(provider_page.path) header.click_hosts_tab_in_header() host_page = HostListPage(app_fs.driver, app_fs.adcm.url) header.wait_url_contains_path(host_page.path) header.click_jobs_tab_in_header() job_page = JobListPage(app_fs.driver, app_fs.adcm.url) header.wait_url_contains_path(job_page.path) header.click_bundles_tab_in_header() bundle_page = BundleListPage(app_fs.driver, app_fs.adcm.url) header.wait_url_contains_path(bundle_page.path) header.click_job_block_in_header() job_page = JobListPage(app_fs.driver, app_fs.adcm.url) header.wait_url_contains_path(job_page.path) header.check_job_popup()