Added GUI test case for account policy settings
Added test case:
- Verify existence of all button and fields in account policy settings
Change-Id: I27e6cf14260a6d6799614ea2cb358792fee1576b
Signed-off-by: manashsarma <manashsarma@in.ibm.com>
diff --git a/gui/gui_test/access_control/test_obmc_gui_local_users.robot b/gui/gui_test/access_control/test_obmc_gui_local_users.robot
index eac4bf0..0ae4d31 100644
--- a/gui/gui_test/access_control/test_obmc_gui_local_users.robot
+++ b/gui/gui_test/access_control/test_obmc_gui_local_users.robot
@@ -25,6 +25,10 @@
${xpath_cancel_button} //*[@data-test-id='localUserManagement-button-cancel']
${xpath_submit_button} //*[@data-test-id='localUserManagement-button-submit']
${xpath_add_user_heading} //h5[contains(text(),'Add user')]
+${xpath_policy_settings_header} //*[text()="Account policy settings"]
+${xpath_auto_unlock} //*[@data-test-id='localUserManagement-radio-automaticUnlock']
+${xpath_manual_unlock} //*[@data-test-id='localUserManagement-radio-manualUnlock']
+${xpath_max_failed_login} //*[@data-test-id='localUserManagement-input-lockoutThreshold']
*** Test Cases ***
@@ -74,6 +78,19 @@
Page Should Contain Element ${xpath_cancel_button}
Page Should Contain Element ${xpath_submit_button}
+
+Verify Existence Of All Buttons And Fields In Account Policy Settings
+ [Documentation] Verify existence of all buttons and fields in account policy settings page.
+ [Tags] Verify_Existence_Of_All_Buttons_And_Fields_In_Account_Policy_Settings
+
+ Click Element ${xpath_account_policy}
+ Wait Until Page Contains ${xpath_policy_settings_header}
+ Page Should Contain Element ${xpath_auto_unlock}
+ Page Should Contain Element ${xpath_manual_unlock}
+ Page Should Contain Element ${xpath_max_failed_login}
+ Page Should Contain Element ${xpath_submit_button}
+ Page Should Contain Element ${xpath_cancel_button}
+
*** Keywords ***
Test Setup Execution