Added tests for power button in overview page
Changes:
- Test is verifying server power button in Overview page
- Added xpath_server_power_header xpath
Change-Id: I95418824456a6ecbb0df3217edc4bf94c371aa0d
Signed-off-by: Sushma M M <sushmm99@in.ibm.com>
diff --git a/gui/data/resource_variables.py b/gui/data/resource_variables.py
index 994749b..e1e282b 100644
--- a/gui/data/resource_variables.py
+++ b/gui/data/resource_variables.py
@@ -133,6 +133,7 @@
xpath_profile_settings = "//a[@href='#/profile-settings']"
xpath_server_health_header = "//*[@data-test-id='appHeader-container-health']"
xpath_event_header = "//h1[text()="Event logs"]"
+ xpath_server_power_header = "//*[@data-test-id='appHeader-container-power']"
# xpath for health menu
xpath_health_menu = "//button[@aria-controls='health-menu']"
diff --git a/gui/gui_test/gui_header/test_gui_header.robot b/gui/gui_test/gui_header/test_gui_header.robot
index 61817fe..47ba28b 100644
--- a/gui/gui_test/gui_header/test_gui_header.robot
+++ b/gui/gui_test/gui_header/test_gui_header.robot
@@ -32,6 +32,15 @@
Wait Until Page Contains Element ${xpath_event_header} timeout=15s
+Verify Server Power Button
+ [Documentation] Verify server power operations page on clicking power button.
+ [Tags] Verify_Server_Power_Button
+
+ Wait Until Element Is Visible ${xpath_server_power_header}
+ Click Element ${xpath_server_power_header}
+ Wait Until Page Contains Server power operations
+
+
Verify GUI Logout
[Documentation] Verify OpenBMC GUI logout.
[Tags] Verify_GUI_Logout