blob: 82e089cb056805098a29f04f64e209922dde731c [file] [log] [blame]
Sivas SRR9aadc262018-05-10 12:16:03 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Manage user account" sub-menu of
4... "Users".
5
6Resource ../../lib/resource.robot
7
8Suite Setup Launch Browser And Login OpenBMC GUI
Rahul Maheshwari43333ff2018-11-26 23:18:36 -06009Suite Teardown Close Browser
Sivas SRR9aadc262018-05-10 12:16:03 -050010Test Setup Test Setup Execution
11
12*** Variables ***
13${xpath_select_users} //*[@id="nav__top-level"]/li[5]/button/span[1]
14${xpath_select_manage_users} //a[@href='#/users/manage-accounts']
15${xpath_current_password} //*[@id="user-manage__current-password"]
16${xpath_new_password} //*[@id="user-manage__new-password"]
17${xpath_retype_new_password} //*[@id="user-manage__verify-password"]
18${xpath_save_button} //*[@id="user-accounts"]/section/form/div/button
19
20*** Test Cases ***
21Verify Select Manage Users Account From Users
22 [Documentation] Verify ability to select "Manage Users Account" sub-menu
23 ... option of "Users".
24 [Tags] Verify_Select_Manage_Users_Account_From_Users
25
26 Wait Until Page Contains Manage user account
27 Page should contain Change password
28
29
30Verify Existence Of All Password Input Boxes
31 [Documentation] Verify all password input boxes exists.
32 [Tags] Verify_Existence_Of_All_Password_Input_Boxes
33
34 Page Should Contain Element ${xpath_current_password}
35 Page Should Contain Element ${xpath_new_password}
36 Page Should Contain Element ${xpath_retype_new_password}
37
38
39Verify Existence Of Save Button
40 [Documentation] Verify save button exists.
41 [Tags] Verify_Existence_Of_Save_Button
42
43 Page Should Contain Element ${xpath_save_button}
44
45*** Keywords ***
46
47Test Setup Execution
48 [Documentation] Do test case setup tasks.
49
50 Page Should Contain Element ${xpath_select_users}
Rahul Maheshwarif6a6db02018-11-30 05:00:35 -060051 Focus ${xpath_select_users}
Sivas SRR9aadc262018-05-10 12:16:03 -050052 Click Element ${xpath_select_users}
53 Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
54 Click Element ${xpath_select_manage_users}
55