Added tests to verify navigation to access control menu pages
Chagnes:
-Test to verify navigation to LDAP sub menu page
-Test to verify navigation to Local user management sub menu page
-Test to verify navigation to SSL ceritficate sub menu page
Change-Id: Ibdf07e179e8628f6762564e45fe305f2ae661673
Signed-off-by: Sushma M M <sushmm99@in.ibm.com>
diff --git a/gui/gui_test/access_control/test_obmc_gui_certificate.robot b/gui/gui_test/access_control/test_obmc_gui_certificate.robot
index 5033543..f5e9a75 100644
--- a/gui/gui_test/access_control/test_obmc_gui_certificate.robot
+++ b/gui/gui_test/access_control/test_obmc_gui_certificate.robot
@@ -11,10 +11,18 @@
*** Variables ***
+${xpath_certificate_heading} //h1[text()="SSL certificates"]
${xpath_add_certificate_button} //button[contains(text(),"Add new certificate")]
*** Test Cases ***
+Verify Navigation To SSL Certificate Page
+ [Documentation] Verify navigation to SSL certificate page.
+ [Tags] Verify_Navigation_To_SSL_Certificate_Page
+
+ Page Should Contain Element ${xpath_certificate_heading}
+
+
Verify Existence Of All Sections In Certificate Page
[Documentation] Verify existence of all sections in certificate page.
[Tags] Verify_Existence_Of_All_Sections_In_Certificate_Page
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 5b98dc8..407e3a7 100644
--- a/gui/gui_test/access_control/test_obmc_gui_ldap.robot
+++ b/gui/gui_test/access_control/test_obmc_gui_ldap.robot
@@ -11,6 +11,7 @@
*** Variables ***
+${xpath_ldap_heading} //h1[text()="LDAP"]
${xpath_enable_ldap_checkbox} //*[@id='enable-ldap-auth']
${xpath_secure_ldap_checkbox} //*[@id='enable-secure-ldap']
${xpath_service_radio_button} //*[@data-test-id="ldap-radio-activeDirectoryEnabled"]
@@ -18,6 +19,13 @@
*** Test Cases ***
+Verify Navigation To LDAP Page
+ [Documentation] Verify navigation to LDAP page.
+ [Tags] Verify_Navigation_To_LDAP_Page
+
+ Page Should Contain Element ${xpath_ldap_heading}
+
+
Verify Existence Of All Sections In LDAP Page
[Documentation] Verify existence of all sections in LDAP page.
[Tags] Verify_Existence_Of_All_Sections_In_LDAP_Page
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 08efc72..25e4012 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
@@ -10,14 +10,22 @@
*** Variables ***
-${xpath_select_user} //input[contains(@class,"custom-control-input")]
-${xpath_account_policy} //button[contains(text(),'Account policy settings')]
-${xpath_add_user} //button[contains(text(),'Add user')]
-${xpath_edit_user} //button[@aria-label="Edit user"]
-${xpath_delete_user} //button[@aria-label="Delete user"]
+${xpath_local_user_management_heading } //h1[text()="Local user management"]
+${xpath_select_user} //input[contains(@class,"custom-control-input")]
+${xpath_account_policy} //button[contains(text(),'Account policy settings')]
+${xpath_add_user} //button[contains(text(),'Add user')]
+${xpath_edit_user} //button[@aria-label="Edit user"]
+${xpath_delete_user} //button[@aria-label="Delete user"]
*** Test Cases ***
+Verify Navigation To Local User Management Page
+ [Documentation] Verify navigation to local user management page.
+ [Tags] Verify_Navigation_To_Local_User_Management_Page
+
+ Page Should Contain Element ${xpath_local_user_management_heading}
+
+
Verify Existence Of All Sections In Local User Management Page
[Documentation] Verify existence of all sections in local user management page.
[Tags] Verify_Existence_Of_All_Sections_In_Local_User_Management_Page