Server Health from GUI header - Phase 2.

Resolves openbmc/openbmc-test-automation#1285

Change-Id: I832901fd84ddacc2dd0fb31e755ad10d49f8ef28
Signed-off-by: Sivas SRR <sivas.srr@in.ibm.com>
diff --git a/gui/obmc_gui/data/resource_variables.py b/gui/obmc_gui/data/resource_variables.py
index 7cf529a..dd36515 100644
--- a/gui/obmc_gui/data/resource_variables.py
+++ b/gui/obmc_gui/data/resource_variables.py
@@ -104,3 +104,8 @@
     xpath_refresh_circle = "/html/body/main/loader/div[1]/svg/circle"
     xpath_drop_down_timezone_utc =  \
         "//*[@id='event-log']/section[1]/div/div/ul/li[2]/button"
+    xpath_event_filter_all = "//*[@id='event-filter']/div[3]/div/button"
+    xpath_event_filter_resolved =  \
+        "//*[@id='event-filter']/div[3]/div/ul/li[2]/button"
+    xpath_event_filter_unresolved = \
+        "//*[@id='event-filter']/div[3]/div/ul/li[3]/button"
diff --git a/gui/obmc_gui/test/gui_header/test_obmc_gui_server_health.robot b/gui/obmc_gui/test/gui_header/test_obmc_gui_server_health.robot
index 4023a7e..a035316 100644
--- a/gui/obmc_gui/test/gui_header/test_obmc_gui_server_health.robot
+++ b/gui/obmc_gui/test/gui_header/test_obmc_gui_server_health.robot
@@ -21,8 +21,8 @@
 
 
 Verify Filters By Severity Elements Appears
-    [Documentation]  Check that event log filters appears by clicking server
-    ...  health in GUI header.
+    [Documentation]  Check that the "event log" filters appears by clicking
+    ...  server health in GUI header.
     [Tags]  Verify_Filters_By_Severity_Elements_Appears
 
     # Types of event severity: All, High, Medium, Low.
@@ -33,8 +33,8 @@
 
 
 Verify Drop Down Button User Timezone Appears
-    [Documentation]  Check that drop down button of user timezone appears by
-    ...  clicking server health in GUI header.
+    [Documentation]  Check that the "drop down" button of user timezone appears
+    ...  by clicking server health in GUI header.
     [Tags]  Verify_Drop_Down_Button_User_Timezone_Appears
 
     Page Should Contain Button  ${xpath_drop_down_timezone_edt}
@@ -44,3 +44,36 @@
     Click Element  class:dropdown__button
     Page Should Contain Button  ${xpath_drop_down_timezone_utc}
 
+
+Verify Content Search Element Appears
+    [Documentation]  Check that the "event search element is available with
+    ...  filter" button appears.
+    [Tags]  Verify_Content_Search_Element_Appears
+
+    Page Should Contain Element  content__search-input  limit=1
+    # Ensure that page is not in refreshing state.
+    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
+    Page Should Contain Button  content__search-submit
+
+
+Verify Filter By Date Element Appears
+    [Documentation]  Check that the "filter by date" elements are available and
+    ...  visible.
+    [Tags]  Verify_Filter_By_Date_Element_Appears
+
+    Wait Until Element Is Visible  event-filter-start-date
+    Page Should Contain Element  event-filter-start-date  limit=1
+    Page Should Contain Element  event-filter-end-date  limit=1
+
+
+Verify Filter By Event Status Element Appears
+    [Documentation]  Check that the "filter by event status" element appears.
+    [Tags]  Verify_Filter_By_Event_Status_Element_Appears
+
+    # Ensure that page is not in refreshing state.
+    Wait Until Page Does Not Contain Element  ${xpath_refresh_circle}
+    Wait Until Element is Visible  class:dropdown__wrapper
+    Click Element  class:dropdown__wrapper
+    Page Should Contain Element  ${xpath_event_filter_all}  limit=1
+    Page Should Contain Element  ${xpath_event_filter_resolved}  limit=1
+    Page Should Contain Element  ${xpath_event_filter_unresolved}  limit=1