示例#1
0
 def test_verify_first_and_last_name_update_in_profile_details(self, driver, url):
     print("To verify first and last name can be modified for local Auth user")
     prefix = Utils.random_string(6)
     phone = Utils.random_number(4)
     Platform(driver).launch(url) \
         .click_create_account_link() \
         .enter_first_name(prefix + "test") \
         .enter_last_name(prefix + "auto") \
         .enter_email(prefix + "*****@*****.**") \
         .enter_password("123qweA!") \
         .click_signup_button() \
         .wait_onboarding_page_loaded() \
         .verify_onboarding_page_title_equals("Update your profile") \
         .enter_company_name(prefix + "Putbox.com") \
         .enter_role(prefix + "Automation") \
         .enter_phone_number("201-555-" + phone) \
         .click_continue_button() \
         .verify_onboarding_page_title_equals("We have created a project for you!") \
         .enter_project_name(prefix) \
         .click_continue_button() \
         .enter_cluster_name(prefix) \
         .click_connect_button() \
         .click_close_button() \
         .logout() \
         .login(prefix + "*****@*****.**", "123qweA!") \
         .open_user_profile_page() \
         .enter_first_name("First") \
         .enter_last_name("Last") \
         .click_update_profile_button() \
         .side_panel() \
         .logout() \
         .login(prefix + "*****@*****.**", "123qweA!") \
         .open_user_profile_page() \
         .verify_first_name_equals(prefix + "test" + "First") \
         .verify_last_name_equals(prefix + "auto" + "Last")
示例#2
0
 def test_verify_profile_details_same_with_onboarding_profile_details(self, driver, url):
     print("To verify the profile info is same as whatever provided during onboarding time")
     prefix = Utils.random_string(6)
     phone = Utils.random_number(4)
     Platform(driver).launch(url) \
         .click_create_account_link() \
         .enter_first_name(prefix + "test") \
         .enter_last_name(prefix + "auto") \
         .enter_email(prefix + "*****@*****.**") \
         .enter_password("123qweA!") \
         .click_signup_button() \
         .wait_onboarding_page_loaded() \
         .verify_onboarding_page_title_equals("Update your profile") \
         .enter_company_name(prefix + "Putbox.com") \
         .enter_role(prefix + "Automation") \
         .enter_phone_number("201-555-" + phone) \
         .click_continue_button() \
         .verify_onboarding_page_title_equals("We have created a project for you!") \
         .enter_project_name(prefix) \
         .click_continue_button() \
         .enter_cluster_name(prefix) \
         .click_connect_button() \
         .click_close_button() \
         .logout() \
         .login(prefix + "*****@*****.**", "123qweA!") \
         .open_user_profile_page() \
         .verify_first_name_equals(prefix + "test") \
         .verify_last_name_equals(prefix + "auto") \
         .verify_email_equals(prefix + "*****@*****.**") \
         .verify_company_equals(prefix + "Putbox.com")\
         .verify_role_equals(prefix + "Automation") \
         .verify_phone_equals("201-555-" + phone)
示例#3
0
 def test_verify_admin_first_and_last_name_update_fail(self, driver, url):
     print("To verify First and last Name cannot be modified for local Auth Admin user")
     phone = Utils.random_number(4)
     Platform(driver).launch(url) \
         .login_as_admin() \
         .open_user_profile_page() \
         .enter_first_name("First") \
         .enter_last_name("Last") \
         .enter_phone_field("201-555-" + phone) \
         .click_update_profile_button() \
         .verify_error_message("Please fill in all required fields")
示例#4
0
 def test_verify_profile_update_after_signup(self, driver, url):
     print("To verify profile can be updated just after signup ")
     prefix = Utils.random_string(6)
     phone = Utils.random_number(4)
     Platform(driver).launch(url) \
         .click_create_account_link() \
         .enter_first_name(prefix + "test") \
         .enter_last_name(prefix + "auto") \
         .enter_email(prefix + "*****@*****.**") \
         .enter_password("123qweA!") \
         .click_signup_button() \
         .wait_onboarding_page_loaded() \
         .verify_onboarding_page_title_equals("Update your profile") \
         .enter_email(prefix + "putsbox.com") \
         .enter_company_name(prefix + "Putbox.com") \
         .enter_role(prefix + "Automation") \
         .enter_phone_number("201-555-" + phone) \
         .click_continue_button() \
         .verify_onboarding_page_title_equals("We have created a project for you!")
示例#5
0
 def test_verify_openebs_components_version(self, driver, url):
     print("To verify profile completion for ORP user and OpenEbs components version check.")
     prefix = Utils.random_string(6)
     phone = Utils.random_number(4)
     Platform(driver).launch(url) \
         .login_as_oep_user("*****@*****.**", "OEPuser@123") \
         .wait_onboarding_page_loaded() \
         .verify_onboarding_page_title_equals("Update your profile") \
         .enter_company_name(prefix + "Putbox") \
         .enter_role(prefix + "Automation") \
         .enter_phone_number("201-555-" + phone) \
         .click_continue_button() \
         .verify_onboarding_page_title_equals("We have created a project for you!") \
         .enter_project_name("") \
         .click_continue_button() \
         .enter_cluster_name(prefix) \
         .click_connect_button() \
         .click_close_button() \
         .open_clusters_page() \
         .open_cluster_details("oep-cluster-cluster2", "active") \
         .open_ebs_page() \
         .verify_openebs_components_version("1.12.0-ee-RC1")