BMC web GUI failure fix

Changes:
   - Update resource.robot power on wait logic.
   - Update header test suite XPATH and DateTime params.

Change-Id: Ia56ca882c17dfa658e64d51055b6b1704e56d079
Signed-off-by: Anusha Dathatri <adathatr@in.ibm.com>
diff --git a/gui/lib/resource.robot b/gui/lib/resource.robot
index 071793b..0760587 100644
--- a/gui/lib/resource.robot
+++ b/gui/lib/resource.robot
@@ -272,7 +272,7 @@
     [Documentation]  Power on the host using GUI.
 
     Controller Server Power Click Button  power__power-on
-    Page Should Contain  Running
+    Wait Until Page Contains  Running   timeout=30s
 
 Verify Display Content
     [Documentation]  Verify text content display.
diff --git a/gui/test/gui_header/test_obmc_gui_ip_refresh_check.robot b/gui/test/gui_header/test_obmc_gui_ip_refresh_check.robot
index 81e342c..30e2008 100644
--- a/gui/test/gui_header/test_obmc_gui_ip_refresh_check.robot
+++ b/gui/test/gui_header/test_obmc_gui_ip_refresh_check.robot
@@ -12,9 +12,9 @@
 
 *** Variables ***
 ${xpath_bmc_ip}                 //*[contains(@class, "header__server-ip")]
-${xpath_select_refresh_button}  //*[contains(@class, "header__page-refresh")]
-${xpath_select_date_text}       //p[@class="header__refresh"]
-${xpath_header_scroll}          //*[@class="header__info"]
+${xpath_select_refresh_button}  //*[text()[contains(.,"Refresh")]]
+${xpath_select_date_text}       //*[@class="header__refresh"]
+${xpath_header_scroll}          //*[contains(@class,"header__action")]
 
 *** Test Cases ***
 
@@ -24,7 +24,7 @@
 
     Wait Until Element Is Visible   ${xpath_select_server_power}
     Click Element  ${xpath_select_server_power}
-    Wait Until Page Contains  Select a power operation
+    Wait Until Page Contains  Server power operations
 
 Verify Server Health Button
     [Documentation]  Verify server health page on clicking server health button.
@@ -43,7 +43,6 @@
     ${gui_displayed_ip}=  Get Text  ${xpath_bmc_ip}
     Should Contain  ${gui_displayed_ip}  ${OPENBMC_HOST}
 
-
 Verify Refresh Button
     [Documentation]  Verify Refresh Button in GUI header.
     [Tags]  Verify_Refresh_Button
@@ -66,7 +65,7 @@
     ${date_info_1st_read}=  Get Text  ${xpath_select_date_text}
     Should Not Be Empty  ${date_info_1st_read}
     ${current_date}=  Get Time
-    ${date_conversion}=  Convert Date  ${current_date}  result_format=%b %d %Y
+    ${date_conversion}=  Convert Date  ${current_date}  result_format=%b %-d %Y
 
     ${mmmdd}  ${yyyy}=  Split String From Right  ${date_conversion}  ${SPACE}  1
     Should Contain  ${date_info_1st_read}  ${mmmdd}  msg=Month and day mismatch.
@@ -78,7 +77,7 @@
 
     ${date_info_2nd_read}=  Get Text  ${xpath_select_date_text}
     ${current_date}=  Get Time
-    ${date_conversion}=  Convert Date  ${current_date}  result_format=%b %d %Y
+    ${date_conversion}=  Convert Date  ${current_date}  result_format=%b %-d %Y
 
     ${mmmdd}  ${yyyy}=  Split String From Right  ${date_conversion}  ${SPACE}  1
     Should Contain  ${date_info_1st_read}  ${mmmdd}  msg=Month and day mismatch.