Updated the XPATH variable and correction changes
Changes:
- Added XPATH and variables for Network, Error logs, inventory and LED's, Firmware and Power headings.
- Changed XPATH names as per gui/data/gui_variables.py
Tested:
- Ran successfully gui/data/gui_variables.py
- Ran successfully gui/gui_test/overview_menu/test_overview_menu.robot
Change-Id: Ie429178679c8da00c76c07c834624fad22a80ed2
Signed-off-by: rramyasr-in <rramyasr@in.ibm.com>
diff --git a/gui/data/gui_variables.py b/gui/data/gui_variables.py
index 6f28f22..0fe686a 100644
--- a/gui/data/gui_variables.py
+++ b/gui/data/gui_variables.py
@@ -29,14 +29,14 @@
xpath_dumps_sub_menu = "//*[@data-test-id='nav-item-dumps']"
xpath_dumps_header = "//h1[text()='Dumps']"
xpath_event_logs_sub_menu = "//*[@data-test-id='nav-item-event-logs']"
- xpath_event_logs_heading = "//h1[contains(text()='Event logs')]"
+ xpath_event_logs_heading = "//h1[contains(text(), 'Event logs')]"
xpath_progress_logs_sub_menu = "//*[@data-test-id='nav-item-post-code-logs']"
# Hardware status menu
xpath_hardware_status_menu = "//*[@data-test-id='nav-button-hardware-status']"
xpath_inventory_and_leds_sub_menu = "//*[@data-test-id='nav-item-inventory']"
xpath_sensor_sub_menu = "//*[@data-test-id='nav-item-sensors']"
- xpath_inventory_and_leds_heading = "//h1[contains(text()='Inventory and LEDs')]"
+ xpath_inventory_and_leds_heading = "//h1[contains(text(), 'Inventory and LEDs')]"
# Operations menu
xpath_operations_menu = "//*[@data-test-id='nav-button-operations']"
@@ -46,11 +46,11 @@
xpath_host_console_sub_menu = "//*[@data-test-id='nav-item-host-console']"
xpath_server_power_operations_sub_menu = "//*[@data-test-id='nav-item-server-power-operations']"
xpath_host_console_heading = "//h1[text()='Host console']"
- xpath_firmware_heading = "//h1[contains(text()='Firmware')]"
+ xpath_firmware_heading = "//h1[contains(text(), 'Firmware')]"
# Settings menu
xpath_settings_menu = "//*[@data-test-id='nav-button-settings']"
- xpath_network_heading = "//h1[contains(text(), 'Network')]"
+ xpath_network_heading = "//h1[text()='Network']"
xpath_date_time_sub_menu = "//*[@data-test-id='nav-item-date-time']"
xpath_network_sub_menu = "//*[@data-test-id='nav-item-network']"
xpath_power_restore_policy_sub_menu = "//*[@data-test-id='nav-item-power-restore-policy']"
@@ -66,7 +66,7 @@
# Resource management menu
xpath_resource_management_menu = "//*[@data-test-id='nav-button-resource-management']"
xpath_power_sub_menu = "//*[@data-test-id='nav-item-power']"
- xpath_power_heading = "//h1[contains(text()='Power')]"
+ xpath_power_heading = "//h1[contains(text(), 'Power')]"
# Profile settings
xpath_default_UTC = "//*[@data-test-id='profileSettings-radio-defaultUTC']"
diff --git a/gui/gui_test/overview_menu/test_overview_menu.robot b/gui/gui_test/overview_menu/test_overview_menu.robot
index 73fc570..4d19ce7 100644
--- a/gui/gui_test/overview_menu/test_overview_menu.robot
+++ b/gui/gui_test/overview_menu/test_overview_menu.robot
@@ -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_inventory_and_leds_view_more_button} timeout=30
- Click Element ${xpath_inventory_and_leds_view_more_button}
+ 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_heading} timeout=30