def test_login_and_nav(self, mozwebqa): ''' Login and navigate to random pages ''' workflow = ['sync_plans', 'systems', 'system_templates', 'roles'] page = Katello(mozwebqa) page.go_to_home_page() page.login('admin', 'admin') #page.select_org(' redhat ') for view in workflow: page.go_to_url(page.baseurl + view) time.sleep(1)
def test_create_tdl(self, mozwebqa): ''' Create TDL name and description, remove ''' page = Katello(mozwebqa) page.go_to_home_page() page.login('admin', 'admin') page.go_to_url(page.baseurl + "system_templates") template_name = 'My System ' + str(time.time()) template_description = 'My template description' page.create_system_template(template_name, template_description) time.sleep(1) page.click_by_text('span', template_name) time.sleep(1) page.remove_element() # logout not working due to data-method='POST' requirement? #page.go_to_url(page.baseurl + 'logout') time.sleep(1)