Update all the Buttons in Policies page
Changes:
- Update the test case with all the variables and xpath name
Tested:
Ran successfully /gui/gui_test/security_and_access_menu/test_policies_sub_menu.robot
Change-Id: I73515897686908439b34ab622c121530f4d6dd75
Signed-off-by: rramyasr-in <rramyasr@in.ibm.com>
diff --git a/gui/gui_test/security_and_access_menu/test_policies_sub_menu.robot b/gui/gui_test/security_and_access_menu/test_policies_sub_menu.robot
index 8176e47..a8e216a 100644
--- a/gui/gui_test/security_and_access_menu/test_policies_sub_menu.robot
+++ b/gui/gui_test/security_and_access_menu/test_policies_sub_menu.robot
@@ -12,11 +12,18 @@
*** Variables ***
-
-${xpath_policies_heading} //h1[text()="Policies"]
-${xpath_bmc_ssh_toggle} //*[@data-test-id='policies-toggle-bmcShell']/following-sibling::label
-${xpath_network_ipmi_toggle} //*[@data-test-id='polices-toggle-networkIpmi']/following-sibling::label
-
+
+${xpath_policies_heading} //h1[text()="Policies"]
+${xpath_bmc_ssh_toggle} //*[@data-test-id='policies-toggle-bmcShell']
+... /following-sibling::label
+${xpath_network_ipmi_toggle} //*[@data-test-id='polices-toggle-networkIpmi']
+... /following-sibling::label
+${xpath_host_tpm_toggle} //input[@id='host-tpm-policy']
+${xpath_virtual_tpm_toggle} //*[@data-test-id='policies-toggle-vtpm']
+${xpath_rtad_toggle} //*[@data-test-id='policies-toggle-rtad']
+${xpath_usb_firmware_update_policy_toggle} //*[@data-test-id='policies-toggle-usbFirmwareUpdatePolicy']
+${xpath_secure_version_lockin_toggle} //*[@data-test-id='policies-toggle-svle']
+${xpath_host_usb_enablement_toggle} //*[@data-test-id='policies-toggle-hostUsb']
*** Test Cases ***
@@ -47,6 +54,12 @@
Page Should Contain Element ${xpath_bmc_ssh_toggle}
Page Should Contain Element ${xpath_network_ipmi_toggle}
+ Page Should Contain Element ${xpath_host_tpm_toggle}
+ Page Should Contain Element ${xpath_virtual_tpm_toggle}
+ Page Should Contain Element ${xpath_rtad_toggle}
+ Page Should Contain Element ${xpath_usb_firmware_update_policy_toggle}
+ Page Should Contain Element ${xpath_secure_version_lockin_toggle}
+ Page Should Contain Element ${xpath_host_usb_enablement_toggle}
Enable SSH Via GUI And Verify