Added test to verify Sensors Filter in Server helath page
Changes:
- Test is verifying sensors filter from server health clickable
Change-Id: Ibdc3c0025c30ef15824e9fc4efa0cf3ee4f9e45b
Signed-off-by: Sushma M M <sushmm99@in.ibm.com>
diff --git a/gui/gui_test/gui_header/test_gui_header.robot b/gui/gui_test/gui_header/test_gui_header.robot
index 3ef82b0..61817fe 100644
--- a/gui/gui_test/gui_header/test_gui_header.robot
+++ b/gui/gui_test/gui_header/test_gui_header.robot
@@ -10,7 +10,7 @@
*** Variables ***
-${xpath_header_text} //*[contains(@class, "navbar-text")]
+${xpath_header_text} //*[contains(@class, "navbar-text")]
*** Test Cases ***
@@ -38,4 +38,4 @@
Click Element ${xpath_root_button_menu}
Click Element ${xpath_logout_button}
- Wait Until Page Contains Element ${xpath_login_button} timeout=15s
\ No newline at end of file
+ Wait Until Page Contains Element ${xpath_login_button} timeout=15s
diff --git a/gui/gui_test/server_health/test_obmc_gui_sensors.robot b/gui/gui_test/server_health/test_obmc_gui_sensors.robot
index afe55a6..a2b2e44 100644
--- a/gui/gui_test/server_health/test_obmc_gui_sensors.robot
+++ b/gui/gui_test/server_health/test_obmc_gui_sensors.robot
@@ -11,6 +11,11 @@
*** Variables ***
${xpath_sensors_export} //a[contains(text(), "Export")]
${xpath_sensors_search} //input[contains(@id,"searchInput")]
+${xpath_sensors_filter} //button[contains(text(),'Filter')]
+${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 Select Sensors From Server Health
@@ -30,6 +35,19 @@
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 ***
Suite Setup Execution