blob: b44ee7f53a24ebdb3ed94bc9caabc090483f1d2a [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"]
16
17*** Test Cases ***
18
19Verify Navigation To Profile Settings Page
20 [Documentation] Verify navigation to profile settings page.
21 [Tags] Verify_Navigation_To_Profile_Settings_page
22
23 Page Should Contain Profile settings
24
25
26Verify Existence Of All Sections In Profile Settings Page
27 [Documentation] Verify existence of all sections in profile settings page.
28 [Tags] Verify_Existence_Of_All_Sections_In_Profile_Settings_Page
29
30 Page Should Contain Profile information
31 Page Should Contain Change password
32 Page Should Contain Timezone display preference
33
34
35Verify Existence Of All Buttons And Input Boxes In Profile Settings Page
36 [Documentation] Verify existence of all buttons and input boxes in profile settings page.
37 [Tags] Verify_Existence_Of_All_Buttons_And_Input_Boxes_In_Profile_Settings_Page
38
39 # Input Boxes in profile settings page.
40 Page Should Contain Element ${xpath_new_password}
41 Page Should Contain Element ${xpath_confirm_password}
42
43 # Buttons in profile settings page.
44 Page Should Contain Element ${xpath_save_settings_button}
45
46
47*** Keywords ***
48
49Test Setup Execution
50 [Documentation] Do test case setup tasks.
51
52 # Navigate to https://xx.xx.xx.xx/#/profile-settings profile-settings page.
53
54 Wait Until Page Contains Element ${xpath_root_button_menu}
55 Click Element ${xpath_root_button_menu}
56 Click Element ${xpath_profile_settings}
57 Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain profile-settings