def test_diagnostic_snapshot(self): Support().generate_snapshot.click() with Support() as s: PageObject.wait_element(s, 'download_snapshot') self.assertTrue( s.download_snapshot.is_enabled(), '"Diagnostic Snapshot" is displayed')
def reset_env(cls): PageObject.click_element(Actions(), 'reset') PageObject.wait_element(Actions(), 'reset_popup') time.sleep(2) PageObject.click_element(Actions(), 'reset_popup') PageObject.click_element(Tabs(), 'nodes') PageObject.long_wait_element(Actions(), 'pending_nodes')
def test_capacity_audit(self): """View capacity audit Scenario: 1. Click view capacity audit 2. Verify that system information is present """ Support().view_capacity_audit.click() PageObject.wait_element(Support(), 'capacity_report') self.assertEqual('Home/Support/Capacity', Header().breadcrumb.text, 'Breadcrumb text')
def test_diagnostic_snapshot(self): """Generate diagnostic snapshot Scenario: 1. Click generate diagnostic snapshot 2. Verify that snapshot is available to download """ Support().generate_snapshot.click() with Support() as s: PageObject.wait_element(s, "download_snapshot") self.assertTrue(s.download_snapshot.is_enabled(), '"Diagnostic Snapshot" is displayed')
def test_diagnostic_snapshot(self): """Generate diagnostic snapshot Scenario: 1. Click generate diagnostic snapshot 2. Verify that snapshot is available to download """ Support().generate_snapshot.click() with Support() as s: PageObject.wait_element(s, 'download_snapshot') self.assertTrue(s.download_snapshot.is_enabled(), '"Diagnostic Snapshot" is displayed')
def test_capacity_audit(self): """View capacity audit Scenario: 1. Click view capacity audit 2. Verify that system information is present """ Support().view_capacity_audit.click() PageObject.wait_element(Support(), 'capacity_report') self.assertEqual( 'Home/Support/Capacity', Header().breadcrumb.text, 'Breadcrumb text' )
def stop_deploy_process(cls): PageObject.click_element(Actions(), 'stop_deploy') PageObject.wait_element(Actions, "stop_deploy_popup") PageObject.click_element(Actions(), 'stop_deploy_popup') PageObject.click_element(Tabs(), 'nodes') PageObject.long_wait_element(Actions(), 'pending_nodes')