示例#1
0
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)
示例#2
0
def test(data):
    users.click_edit_button(data.username)
    actions.click(create_user.reset_password_button)
    new_password = '******'
    create_user.send_reset_password_prompt(new_password)
    common.assert_toast_message_is_displayed('Password reset')
def test(data):
    users.click_edit_button(data.username1)
    actions.clear_element(create_user.username)
    actions.send_keys(create_user.username, data.username2)
    actions.click(create_user.update_user_button)
    common.assert_toast_message_is_displayed('Username {} already exists'.format(data.username2))