Fix GUI:LDAP: Change in LDAP test cases
Changes:
- Change in XPATH for enable/disable LDAP
Tested:
- Tested on BMC Environment.
Change-Id: I2b8796199262441fe925cc3caa1a53eda7546356
Signed-off-by: Sweta Potthuri <spotthur@in.ibm.com>
diff --git a/gui/gui_test/security_and_access_menu/test_ldap_sub_menu.robot b/gui/gui_test/security_and_access_menu/test_ldap_sub_menu.robot
index a184c08..b34329d 100644
--- a/gui/gui_test/security_and_access_menu/test_ldap_sub_menu.robot
+++ b/gui/gui_test/security_and_access_menu/test_ldap_sub_menu.robot
@@ -12,7 +12,7 @@
*** Variables ***
${xpath_ldap_heading} //h1[text()="LDAP"]
-${xpath_enable_ldap_checkbox} //*[@data-test-id='ldap-checkbox-ldapAuthenticationEnabled']//following-sibling::label
+${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')]
@@ -231,7 +231,7 @@
# Wait for GUI to reflect LDAP disabled status.
Run Keywords Refresh GUI AND Sleep 10s
- Click Element ${xpath_enable_ldap_checkbox}
+ Click Element At Coordinates ${xpath_enable_ldap_checkbox} 0 0
${radio_buttons}= Get WebElements ${xpath_service_radio_button}
Run Keyword If '${ldap_service_type}' == 'LDAP'