Fix for LED ON and display event logs test cases

Change-Id: Id8152f3533b4797b9b36ae1229736c59eb439d1a
Signed-off-by: Ashwini Chandrappa <Ashwini.Chandrappa777@ibm.com>
diff --git a/gui/gui_test/control_menu/test_server_led_sub_menu.robot b/gui/gui_test/control_menu/test_server_led_sub_menu.robot
index aedec87..9abd504 100644
--- a/gui/gui_test/control_menu/test_server_led_sub_menu.robot
+++ b/gui/gui_test/control_menu/test_server_led_sub_menu.robot
@@ -52,7 +52,8 @@
     # Turn Off the server LED via Redfish.
     Redfish.Patch  /redfish/v1/Systems/system  body={"IndicatorLED":"Off"}   valid_status_codes=[200, 204]
 
-    # Turn ON the server LED via GUI.
+    # Refresh GUI and turn ON the server LED via GUI.
+    Click Element  ${xpath_refresh_button}
     Click Element At Coordinates  ${xpath_led_toggle}  0  0
     Wait Until Element Contains  ${xpath_led_value}  On  timeout=15
 
@@ -69,7 +70,8 @@
     # Turn ON the server LED via Redfish.
     Redfish.Patch  /redfish/v1/Systems/system  body={"IndicatorLED":"Lit"}   valid_status_codes=[200, 204]
 
-    # Turn Off the server LED via GUI.
+    # Refresh GUI and turn OFF the server LED via GUI.
+    Click Element  ${xpath_refresh_button}
     Click Element At Coordinates  ${xpath_led_toggle}  0  0
     Wait Until Element Contains  ${xpath_led_value}  Off  timeout=30
 
diff --git a/gui/gui_test/health_menu/test_event_logs_sub_menu.robot b/gui/gui_test/health_menu/test_event_logs_sub_menu.robot
index 73dd75c..c6b4c4e 100644
--- a/gui/gui_test/health_menu/test_event_logs_sub_menu.robot
+++ b/gui/gui_test/health_menu/test_event_logs_sub_menu.robot
@@ -112,6 +112,8 @@
     [Teardown]  Redfish.Logout
 
     Create Error Logs  ${1}
+    # Added a delay for error log to appear on error log page.
+    Sleep  5s
     ${event_data}=  Get Event Logs
     Page Should Contain  ${event_data[0]["Severity"]}
     Page Should Contain  ${event_data[0]["EntryType"]}