Added tests for health button in overview page

Changes:
    - Test is verifying server helath butotn in Overview page
    - Added ${xpath_server_health_header} and ${xpath_event_header}

Change-Id: I1bc71587fa32986d28c66f5b7aceed700e3aaa4d
Signed-off-by: Sushma M M <sushmm99@in.ibm.com>
diff --git a/gui/data/resource_variables.py b/gui/data/resource_variables.py
index f47a852..994749b 100644
--- a/gui/data/resource_variables.py
+++ b/gui/data/resource_variables.py
@@ -127,8 +127,12 @@
 
     # xpath for overview menu
     xpath_overview_menu = "//a[@href='#/']"
+
+    # xpath for header
     xpath_root_button_menu = "//*[@id='app-header-user__BV_toggle_']"
     xpath_profile_settings = "//a[@href='#/profile-settings']"
+    xpath_server_health_header = "//*[@data-test-id='appHeader-container-health']"
+    xpath_event_header = "//h1[text()="Event logs"]"
 
     # xpath for health menu
     xpath_health_menu = "//button[@aria-controls='health-menu']"
diff --git a/gui/gui_test/gui_header/test_gui_header.robot b/gui/gui_test/gui_header/test_gui_header.robot
index 8d736f4..3ef82b0 100644
--- a/gui/gui_test/gui_header/test_gui_header.robot
+++ b/gui/gui_test/gui_header/test_gui_header.robot
@@ -23,10 +23,19 @@
     Should Contain  ${gui_header_text}  BMC System Management
 
 
+Verify Server Health Button
+    [Documentation]  Verify event log page on clicking health button.
+    [Tags]  Verify_Server_Health_Button
+
+    Wait Until Element Is Visible   ${xpath_server_health_header}
+    Click Element  ${xpath_server_health_header}
+    Wait Until Page Contains Element  ${xpath_event_header}  timeout=15s
+
+
 Verify GUI Logout
     [Documentation]  Verify OpenBMC GUI logout.
     [Tags]  Verify_GUI_Logout
 
     Click Element  ${xpath_root_button_menu}
     Click Element  ${xpath_logout_button}
-    Wait Until Page Contains Element  ${xpath_login_button}  timeout=15s
+    Wait Until Page Contains Element  ${xpath_login_button}  timeout=15s
\ No newline at end of file