blob: 833f868f403085a99f198a2afe68ae49385d1d8e [file] [log] [blame]
*** Settings ***
Documentation Test OpenBMC GUI "Sensors" sub-menu.
Resource ../../lib/resource.robot
Suite Setup Launch Browser And Login GUI
Suite Teardown Close Browser
Test Setup Test Setup Execution
*** Variables ***
${xpath_sensor_heading} //h1[text()="Sensors"]
${xpath_sensors_filter} //button[contains(text(),'Filter')]
${xpath_sensors_search} //input[contains(@class,"search-input")]
${xpath_filter_ok} //*[@data-test-id='tableFilter-checkbox-OK']
${xpath_filter_warning} //*[@data-test-id='tableFilter-checkbox-Warning']
${xpath_filter_critical} //*[@data-test-id='tableFilter-checkbox-Critical']
${xpath_filter_clear_all} //*[@data-test-id='tableFilter-button-clearAll']
*** Test Cases ***
Verify Navigation To Sensors Page
[Documentation] Verify navigation to Sensors page.
[Tags] Verify_Navigation_To_Sensors_Page
Page Should Contain Element ${xpath_sensor_heading}
Verify Existence Of All Sections In Sensor Page
[Documentation] Verify existence of all sections in sensor page.
[Tags] Verify_Existence_Of_All_Sections_In_Event_Logs_Page
Page Should Contain Sensors
Verify Existence Of All Buttons And Input Boxes In Sensor Page
[Documentation] Verify existence of all buttons and input boxes in sensor page.
[Tags] Verify_Existence_Of_All_Buttons_And_Input_Boxes_In_Sensor_Page
Page Should Contain Element ${xpath_sensors_filter}
Click Element ${xpath_sensors_filter}
#Search field
Page Should Contain Element ${xpath_sensors_search}
Verify Search Text Entered
[Documentation] Verify search text input allowed from "Sensors" page.
[Tags] Verify_Search_Text_Entered
Wait Until Page Contains Element ${xpath_sensors_search}
Input Text ${xpath_sensors_search} temp
Wait Until Page Contains p0 vcs temp timeout=15
Verify Sensors Filter From Server Health Clickable
[Documentation] Verify sensors filter from server health clickable
[Tags] Verify_Sensors_Filter_From_Server_Health_Clickable
Wait Until Page Contains Element ${xpath_sensors_filter} timeout=15s
Click Element ${xpath_sensors_filter}
Page Should Contain Element ${xpath_filter_ok}
Page Should Contain Element ${xpath_filter_warning}
Page Should Contain Element ${xpath_filter_critical}
Page Should Contain Element ${xpath_filter_clear_all}
*** Keywords ***
Test Setup Execution
[Documentation] Do test case setup tasks.
Click Element ${xpath_health_menu}
Click Element ${xpath_sensor_sub_menu}
Wait Until Keyword Succeeds 30 sec 5 sec Location Should Contain sensors