Using data-test-id to fix xpath failure in GUI LDAP test
Change-Id: Ie3aee49af0048cd80761b3109551dce8618a5396
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/gui/gui_test/access_control/test_obmc_gui_ldap.robot b/gui/gui_test/access_control/test_obmc_gui_ldap.robot
index 84e1c00..00d2dac 100644
--- a/gui/gui_test/access_control/test_obmc_gui_ldap.robot
+++ b/gui/gui_test/access_control/test_obmc_gui_ldap.robot
@@ -12,11 +12,12 @@
*** Variables ***
${xpath_ldap_heading} //h1[text()="LDAP"]
-${xpath_enable_ldap_checkbox} //*[@id='enable-ldap-auth']
-${xpath_secure_ldap_checkbox} //*[@id='enable-secure-ldap']
+${xpath_enable_ldap_checkbox} //*[@data-test-id='ldap-checkbox-ldapAuthenticationEnabled']
+${xpath_secure_ldap_checkbox} //*[@data-test-id='ldap-checkbox-secureLdapEnabled']
${xpath_service_radio_button} //*[@data-test-id="ldap-radio-activeDirectoryEnabled"]
${xpath_add_role_group_button} //button[contains(text(),'Add role group')]
+
*** Test Cases ***
Verify Navigation To LDAP Page