Server health from GUI header - Phase 3.
Resolves openbmc/openbmc-test-automation#1286
Change-Id: Ie97f56f673764216754f4729ff9bf7dd53d22c06
Signed-off-by: Sivas SRR <sivas.srr@in.ibm.com>
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 a035316..d908d2b 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
@@ -77,3 +77,38 @@
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
+
+
+Verify Event Action Bar Element Appears
+ [Documentation] Check that "event action bar" element appears.
+ [Tags] Verify_Event_Action_Bar_Element_Appears
+
+ # Ensure that page is not in refreshing state.
+ Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
+ Page Should Contain Element ${xpath_event_action_bars} limit=1
+ Page Should Contain Element class:control__indicator
+
+
+Verify Click Events Check Box
+ [Documentation] Check that "event check box" element appears and on click
+ ... should be able to see elements like "Delete" button and "Export"
+ ... element.
+ [Tags] Verify_Click_Events_Check_Box
+
+ # Ensure that page is not in refreshing state.
+ Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
+ Click Element class:control__indicator
+ Page Should Contain Button ${xpath_event_action_delete} limit=1
+ Page Should Contain Element ${xpath_event_action_export} limit=1
+
+
+Verify Number of Events Appears
+ [Documentation] Check that "number of events" element appears and value is
+ ... visible.
+ [Tags] Verify_Number_of_Events_Appears
+
+ # Ensure that page is not in refreshing state.
+ Wait Until Page Does Not Contain Element ${xpath_refresh_circle}
+ Page Should Contain Element ${xpath_number_of_events}
+ ${number_of_events}= Get Text ${xpath_number_of_events}
+ Log To Console \n Number of Events:${number_of_events}