Merge server health suite test cases to health menu suite
Moved required testcases from server_health/test_obmc_gui_sensors.robot
to health_menu/test_obmc_gui_sensors.robot and removed server_heath
directory.
Change-Id: I1a45befccb22b031aabd247bbdd2c5e5bccb983d
Signed-off-by: Anusha Dathatri <adathatr@in.ibm.com>
diff --git a/gui/gui_test/health_menu/test_obmc_gui_sensors.robot b/gui/gui_test/health_menu/test_obmc_gui_sensors.robot
index 8f5bd30..833f868 100644
--- a/gui/gui_test/health_menu/test_obmc_gui_sensors.robot
+++ b/gui/gui_test/health_menu/test_obmc_gui_sensors.robot
@@ -9,9 +9,13 @@
*** Variables ***
-${xpath_sensor_heading} //h1[text()="Sensors"]
-${xpath_sensors_filter} //button[contains(text(),'Filter')]
-${xpath_sensors_search} //input[contains(@class,"search-input")]
+${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 ***
@@ -40,6 +44,28 @@
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