Update XPath variable names and corrections
Changes:
- Updated XPATH and variables names for network
information, Server information, event logs for
the view more button
Tested:
- Ran successfully gui/gui_test/overview_menu/test_overview_menu.robot
Change-Id: I6a69dc4591a60c659c64f9f03c7768f40ab22b1f
Signed-off-by: rramyasr-in <rramyasr@in.ibm.com>
diff --git a/gui/gui_test/overview_menu/test_overview_menu.robot b/gui/gui_test/overview_menu/test_overview_menu.robot
index 4d19ce7..9c79151f 100644
--- a/gui/gui_test/overview_menu/test_overview_menu.robot
+++ b/gui/gui_test/overview_menu/test_overview_menu.robot
@@ -19,7 +19,7 @@
${xpath_overview_page_header} //h1[contains(text(), "Overview")]
${xpath_server_information_view_more_button} (//*[text()="View more"])[1]
${xpath_firmware_information_view_more_button} (//*[text()="View more"])[2]
-${xpath_edit_network_settings_button} (//*[text()="View more"])[3]
+${xpath_network_information_view_more_button} (//*[text()="View more"])[3]
${xpath_power_information_view_more_button} (//*[text()="View more"])[4]
${xpath_event_logs_view_more_button} (//*[text()="View more"])[5]
${xpath_inventory_and_leds_view_more_button} (//*[text()="View more"])[6]
@@ -85,7 +85,7 @@
[Documentation] Verify navigation to network setting page after clicking the button in overview page.
[Tags] Verify_Edit_Network_Setting_Button
- Click Element ${xpath_edit_network_settings_button}
+ Click Element ${xpath_network_information_view_more_button}
Wait Until Page Contains Element ${xpath_network_heading}
@@ -100,13 +100,13 @@
Wait Until Page Contains xyz.openbmc_project.Common.Error.InternalFailure timeout=30s
-Verify View All Event Logs Button
- [Documentation] Verify view all event log button in overview page.
- [Tags] Verify_View_All_Event_Logs_Button
+Verify View More Event Logs Button
+ [Documentation] Verify view more event log button in overview page.
+ [Tags] Verify_View_More_Event_Logs_Button
Generate Test Error Log
- Page Should Contain Element ${view_all_event_logs} timeout=30
- Click Element ${view_all_event_logs}
+ Page Should Contain Element ${xpath_event_logs_view_more_button} timeout=30
+ Click Element ${xpath_event_logs_view_more_button}
Wait Until Page Contains Element ${xpath_event_logs_heading} timeout=30
@@ -181,8 +181,8 @@
[Documentation] Verify view more button under server information section in overview page.
[Tags] Verify_View_More_Button_Under_Server_Information_Section
- Wait Until Page Contains Element ${xpath_server_information} timeout=30
- Click Element ${xpath_server_information}
+ Wait Until Page Contains Element ${xpath_server_information_view_more_button} timeout=30
+ Click Element ${xpath_server_information_view_more_button}
Wait Until Page Contains Element ${xpath_inventory_and_leds_heading} timeout=30
@@ -199,8 +199,8 @@
[Documentation] Verify view more button under network information section in overview page.
[Tags] Verify_View_More_Button_Under_Network_information_Section
- Wait Until Page Contains Element ${xpath_edit_network_settings_button} timeout=30
- Click Element ${xpath_edit_network_settings_button}
+ Wait Until Page Contains Element ${xpath_network_information_view_more_button} timeout=30
+ Click Element ${xpath_network_information_view_more_button}
Wait Until Page Contains Element ${xpath_network_heading} timeout=30