Sushma M M | 0125f0c | 2020-08-12 21:43:32 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test OpenBMC GUI "Profile settings" menu. |
| 4 | |
| 5 | Resource ../../lib/resource.robot |
| 6 | |
| 7 | Suite Setup Launch Browser And Login GUI |
| 8 | Suite Teardown Close Browser |
| 9 | Test 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 M | d63190b | 2020-08-19 06:52:14 -0500 | [diff] [blame] | 16 | ${xpath_logged_usename} //*[@data-test-id='appHeader-container-user'] |
Sushma M M | 0125f0c | 2020-08-12 21:43:32 -0500 | [diff] [blame] | 17 | |
| 18 | *** Test Cases *** |
| 19 | |
| 20 | Verify 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 | |
| 27 | Verify 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 | |
| 36 | Verify 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 M | d63190b | 2020-08-19 06:52:14 -0500 | [diff] [blame] | 48 | Verify 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 M | 0125f0c | 2020-08-12 21:43:32 -0500 | [diff] [blame] | 57 | *** Keywords *** |
| 58 | |
| 59 | Test 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 |