Added test case to verify clear all button in sensor page

Changes:
       -Added Verify_Clear_All_Button_In_Filters in sensor sub-menu

Change-Id: Ib1162c587bbd330c0da52b02ac87cfc0942be9fb
Signed-off-by: Sushma M M <sushmm99@in.ibm.com>
Signed-off-by: Ashwini Chandrappa <Ashwini.Chandrappa777@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 3d36e10..600eda8 100644
--- a/gui/gui_test/health_menu/test_obmc_gui_sensors.robot
+++ b/gui/gui_test/health_menu/test_obmc_gui_sensors.robot
@@ -16,6 +16,7 @@
 ${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']
+${xpath_selected_severity}   //*[@class="d-inline-block mb-0"]
 
 *** Test Cases ***
 
@@ -76,6 +77,26 @@
     Page Should Contain  No items match the search query
 
 
+Verify Clear All Button In Sensor Page
+    [Documentation]  Select all severity and verify clear all button de-selects all severity.
+    [Tags]  Verify_Clear_All_Button_In_Sensor_Page
+
+    Wait Until Page Contains Element  ${xpath_sensors_filter}  timeout=15s
+    Click Element  ${xpath_sensors_filter}
+
+    # Select all severity from filter.
+    Click Element At Coordinates  ${xpath_filter_ok}  0  0
+    Click Element At Coordinates  ${xpath_filter_warning}  0  0
+    Click Element At Coordinates  ${xpath_filter_critical}  0  0
+    Element Should Be Visible  ${xpath_selected_severity}
+
+    # De-select all severity using clear all button in filter.
+    Click Element At Coordinates  ${xpath_filter_clear_all}  0  0
+    Click Element  ${xpath_sensors_filter}
+
+    Element Should Not Be Visible  ${xpath_selected_severity}
+
+
 *** Keywords ***
 
 Test Setup Execution