def test(data): new_username = actions.random_str() actions.send_keys(create_user.username, new_username) actions.send_keys(create_user.password, '123456') actions.click(create_user.create_user_button) users.wait_for_table_to_load() users.assert_user_in_table(new_username)
def setup(data): data.username1 = actions.random_str() data.username2 = actions.random_str() utils.create_user(data.username1, '123456') utils.create_user(data.username2, '123456') common.access_golem(data.env.url, data.env.admin) common.navigate_menu('Users') users.wait_for_table_to_load()
def test(data): users.click_edit_button(data.username) new_username = actions.random_str() new_email = '*****@*****.**' actions.clear(create_user.username) actions.send_keys(create_user.username, new_username) actions.clear(create_user.email) actions.send_keys(create_user.email, new_email) actions.click(create_user.update_user_button) users.wait_for_table_to_load() assert not users.user_in_table(data.username) assert users.user_in_table(new_username) users.assert_user_values(new_username, email=new_email)
def setup(data): common.access_golem(data.env.url, data.env.admin) common.navigate_menu('Users') users.wait_for_table_to_load()