Fix for Verify Existence Of All Buttons In Event Logs Page
Changes:
- Added the setup and modified the teardown
to open and close the filter dropdown.
Tested:
- Ran testsuite test_event_logs_sub_menu.robot from the sandbox successfully.
Change-Id: I9070e60a939e2f465bb3244128f8adf42f8dd407
Signed-off-by: dnirmala <dhurgam.nirmala1@ibm.com>
diff --git a/gui/gui_test/logs_menu/test_event_logs_sub_menu.robot b/gui/gui_test/logs_menu/test_event_logs_sub_menu.robot
index 81adb52..414d00f 100644
--- a/gui/gui_test/logs_menu/test_event_logs_sub_menu.robot
+++ b/gui/gui_test/logs_menu/test_event_logs_sub_menu.robot
@@ -31,6 +31,7 @@
${xpath_success_message} //*[contains(text(),"Success")]
${xpath_resolved_button} //button[contains(text(),"Resolve")]
${xpath_unresolved_button} //button[contains(text(),"Unresolve")]
+${xpath_filter_clearall_button} //button[contains(text(),"Clear all")]
*** Test Cases ***
@@ -44,10 +45,10 @@
Verify Existence Of All Buttons In Event Logs Page
[Documentation] Verify existence of all buttons in Event Logs page.
[Tags] Verify_Existence_Of_All_Buttons_In_Event_Logs_Page
- [Teardown] Click Element ${xpath_filter_event}
+ [Setup] Click Element ${xpath_filter_event}
+ [Teardown] Click Button ${xpath_filter_clearall_button}
# Types of event severity: OK, Warning, Critical.
- Click Element ${xpath_filter_event}
Page Should Contain Element ${xpath_event_severity_ok} limit=1
Page Should Contain Element ${xpath_event_severity_warning} limit=1
Page Should Contain Element ${xpath_event_severity_critical} limit=1
@@ -56,6 +57,7 @@
Page Should Contain Element ${xpath_event_status_resolved} limit=1
Page Should Contain Element ${xpath_event_status_unresolved} limit=1
+
Verify Existence Of All Input Boxes In Event Logs Page
[Documentation] Verify existence of all input boxes in Event Logs page.
[Tags] Verify_Existence_Of_All_Input_Boxes_In_Event_Logs_Page