blob: e47651d7bfeb0b572649f13259678dc6dea8c2ef [file] [log] [blame]
Sushma M M0125f0c2020-08-12 21:43:32 -05001*** Settings ***
2
3Documentation Test OpenBMC GUI "Profile settings" menu.
4
5Resource ../../lib/resource.robot
6
7Suite Setup Launch Browser And Login GUI
8Suite Teardown Close Browser
9Test Setup Test Setup Execution
10
11
12*** Variables ***
13
14${xpath_new_password} //input[@id="password"]
15${xpath_confirm_password} //input[@id="password-confirmation"]
Sushma M Md63190b2020-08-19 06:52:14 -050016${xpath_logged_usename} //*[@data-test-id='appHeader-container-user']
Sushma M M0125f0c2020-08-12 21:43:32 -050017
18*** Test Cases ***
19
20Verify Navigation To Profile Settings Page
21 [Documentation] Verify navigation to profile settings page.
22 [Tags] Verify_Navigation_To_Profile_Settings_page
23
24 Page Should Contain Profile settings
25
26
27Verify Existence Of All Sections In Profile Settings Page
28 [Documentation] Verify existence of all sections in profile settings page.
29 [Tags] Verify_Existence_Of_All_Sections_In_Profile_Settings_Page
30
31 Page Should Contain Profile information
32 Page Should Contain Change password
33 Page Should Contain Timezone display preference
34
35
36Verify Existence Of All Buttons And Input Boxes In Profile Settings Page
37 [Documentation] Verify existence of all buttons and input boxes in profile settings page.
38 [Tags] Verify_Existence_Of_All_Buttons_And_Input_Boxes_In_Profile_Settings_Page
39
40 # Input Boxes in profile settings page.
41 Page Should Contain Element ${xpath_new_password}
42 Page Should Contain Element ${xpath_confirm_password}
43
44 # Buttons in profile settings page.
45 Page Should Contain Element ${xpath_save_settings_button}
46
47
Sushma M Md63190b2020-08-19 06:52:14 -050048Verify Logged In Username
49 [Documentation] Verify logged in username in profile settings page.
50 [Tags] Verify_Logged_In_Username
51
52 Wait Until Page Contains Element ${xpath_logged_usename}
53 ${gui_logged_username}= Get Text ${xpath_logged_usename}
54 Should Contain ${gui_logged_username} ${OPENBMC_USERNAME}
55
56
Sushma M M0125f0c2020-08-12 21:43:32 -050057*** Keywords ***
58
59Test Setup Execution
60 [Documentation] Do test case setup tasks.
61
62 # Navigate to https://xx.xx.xx.xx/#/profile-settings profile-settings page.
63
64 Wait Until Page Contains Element ${xpath_root_button_menu}
65 Click Element ${xpath_root_button_menu}
66 Click Element ${xpath_profile_settings}
67 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain profile-settings