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 | |
Rahul Maheshwari | 41747da | 2020-11-17 09:09:52 -0600 | [diff] [blame] | 5 | Resource ../../lib/gui_resource.robot |
Sushma M M | 0125f0c | 2020-08-12 21:43:32 -0500 | [diff] [blame] | 6 | |
| 7 | Suite Setup Launch Browser And Login GUI |
| 8 | Suite Teardown Close Browser |
| 9 | Test Setup Test Setup Execution |
| 10 | |
George Keishing | 0302e9a | 2023-10-12 21:48:35 +0530 | [diff] [blame] | 11 | Force Tags Profile_Settings_Sub_Menu |
Sushma M M | 0125f0c | 2020-08-12 21:43:32 -0500 | [diff] [blame] | 12 | |
| 13 | *** Variables *** |
| 14 | |
Rahul Maheshwari | e5d9c31 | 2021-01-31 23:56:20 -0600 | [diff] [blame] | 15 | ${xpath_new_password} //*[@data-test-id='profileSettings-input-newPassword'] |
| 16 | ${xpath_confirm_password} //*[@data-test-id='profileSettings-input-confirmPassword'] |
Sushma M M | c96a4b6 | 2020-11-12 01:01:42 -0600 | [diff] [blame] | 17 | ${xpath_logged_usename} //*[@data-test-id='appHeader-container-user'] |
| 18 | ${xpath_default_UTC} //*[@data-test-id='profileSettings-radio-defaultUTC'] |
| 19 | ${xpath_profile_settings_save_button} //*[@data-test-id='profileSettings-button-saveSettings'] |
Sushma M M | 0125f0c | 2020-08-12 21:43:32 -0500 | [diff] [blame] | 20 | |
| 21 | *** Test Cases *** |
| 22 | |
| 23 | Verify Navigation To Profile Settings Page |
| 24 | [Documentation] Verify navigation to profile settings page. |
George Keishing | d6a7797 | 2022-01-31 12:50:29 -0600 | [diff] [blame] | 25 | [Tags] Verify_Navigation_To_Profile_Settings_Page |
Sushma M M | 0125f0c | 2020-08-12 21:43:32 -0500 | [diff] [blame] | 26 | |
| 27 | Page Should Contain Profile settings |
| 28 | |
| 29 | |
| 30 | Verify Existence Of All Sections In Profile Settings Page |
| 31 | [Documentation] Verify existence of all sections in profile settings page. |
| 32 | [Tags] Verify_Existence_Of_All_Sections_In_Profile_Settings_Page |
| 33 | |
| 34 | Page Should Contain Profile information |
| 35 | Page Should Contain Change password |
| 36 | Page Should Contain Timezone display preference |
| 37 | |
| 38 | |
| 39 | Verify Existence Of All Buttons And Input Boxes In Profile Settings Page |
| 40 | [Documentation] Verify existence of all buttons and input boxes in profile settings page. |
| 41 | [Tags] Verify_Existence_Of_All_Buttons_And_Input_Boxes_In_Profile_Settings_Page |
| 42 | |
| 43 | # Input Boxes in profile settings page. |
| 44 | Page Should Contain Element ${xpath_new_password} |
| 45 | Page Should Contain Element ${xpath_confirm_password} |
| 46 | |
| 47 | # Buttons in profile settings page. |
| 48 | Page Should Contain Element ${xpath_save_settings_button} |
| 49 | |
| 50 | |
Sushma M M | d63190b | 2020-08-19 06:52:14 -0500 | [diff] [blame] | 51 | Verify Logged In Username |
| 52 | [Documentation] Verify logged in username in profile settings page. |
| 53 | [Tags] Verify_Logged_In_Username |
| 54 | |
| 55 | Wait Until Page Contains Element ${xpath_logged_usename} |
| 56 | ${gui_logged_username}= Get Text ${xpath_logged_usename} |
| 57 | Should Contain ${gui_logged_username} ${OPENBMC_USERNAME} |
| 58 | |
| 59 | |
Sushma M M | c96a4b6 | 2020-11-12 01:01:42 -0600 | [diff] [blame] | 60 | Verify Default UTC Timezone Display |
| 61 | [Documentation] Set default UTC timezone via GUI and verify timezone value in overview page. |
| 62 | [Tags] Verify_Default_UTC_Timezone_Display |
| 63 | |
| 64 | Click Element At Coordinates ${xpath_default_UTC} 0 0 |
| 65 | Click Element ${xpath_profile_settings_save_button} |
| 66 | |
| 67 | # Navigate to the overview page. |
| 68 | |
| 69 | Click Element ${xpath_overview_menu} |
| 70 | Wait Until Page Contains Overview timeout=30s |
| 71 | |
| 72 | ${cli_date_time}= CLI Get BMC DateTime |
| 73 | |
| 74 | # Fetching hour and minute from BMC CLI to handle seconds difference during execution. |
| 75 | |
| 76 | ${cli_hour_and_min}= Convert Date ${cli_date_time} result_format=%H:%M |
| 77 | Page Should Contain ${cli_hour_and_min} |
| 78 | |
| 79 | |
Sushma M M | 0125f0c | 2020-08-12 21:43:32 -0500 | [diff] [blame] | 80 | *** Keywords *** |
| 81 | |
| 82 | Test Setup Execution |
| 83 | [Documentation] Do test case setup tasks. |
| 84 | |
| 85 | # Navigate to https://xx.xx.xx.xx/#/profile-settings profile-settings page. |
| 86 | |
| 87 | Wait Until Page Contains Element ${xpath_root_button_menu} |
| 88 | Click Element ${xpath_root_button_menu} |
Ashwini Chandrappa | d268630 | 2021-07-26 00:03:00 -0500 | [diff] [blame] | 89 | Wait Until Page Contains Element ${xpath_profile_settings} |
Sushma M M | 0125f0c | 2020-08-12 21:43:32 -0500 | [diff] [blame] | 90 | Click Element ${xpath_profile_settings} |
| 91 | Wait Until Keyword Succeeds 30 sec 10 sec Location Should Contain profile-settings |
rramyasr-in | 9e2c96f | 2023-01-24 07:59:34 -0600 | [diff] [blame] | 92 | Wait Until Element Is Not Visible ${xpath_page_loading_progress_bar} timeout=30 |