def test_045_TUMIUAT_831(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() my_account1.click_address_book_btn() my_account1.click_address_del() assert new_find_element(self.driver, my_account.address_name).text != '测试测试测试测试'
def test_034_TUMIUAT_1530_1(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() time.sleep(6) b = new_find_element(self.driver, my_account.nearby_stores).text my_account1.click_nearby_stores() a = new_find_element(self.driver, my_account.store_name).text assert b.upper() == a
def test_035_TUMIUAT_1530_2(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() time.sleep(6) my_account1.click_nearby_stores() my_account1.click_store_search() assert new_find_element(self.driver, my_account.store_type).text == 'Store Type'
def test_055_TUMIUAT_835(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() my_account1.click_update_my_password() my_account1.input_now_password() my_account1.input_confirm_new_password() my_account1.click_save_new_password() assert new_find_element(self.driver, my_account.newPassword_errors ).text == 'Please enter your new password'
def tearDown(self): homepage1 = homepage(self.driver) my_account1 = my_account(self.driver) time.sleep(2) my_account1.move_to_logo() my_account1.click_account_logo() if new_find_element(self.driver, homepage.my_username).text != 'Login / Register': homepage1.sign_out()
def test_057_TUMIUAT_837(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() my_account1.click_update_my_password() my_account1.input_now_password() my_account1.input_new_password() my_account1.input_confirm_new_password2() my_account1.click_save_new_password() assert new_find_element( self.driver, my_account.checkNewPassword_errors ).text == 'password and confirmation password do not match'
def test_044_TUMIUAT_572(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() my_account1.click_address_book_btn() my_account1.click_address_edit() my_account1.input_address_consignee() my_account1.input_address_Detailed() my_account1.click_address_save() assert new_find_element( self.driver, my_account.creat_new_address).text == 'Add Shipping Address'
def test_036_TUMIUAT_823(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() my_account1.input_diy() time.sleep(1) my_account1.click_diy_btn() time.sleep(1) assert new_find_element( self.driver, my_account.diy_title ).text == 'Click on each slots to enter an alphabet, number or select any of the symbols displayed below for monogramming.' self.driver.refresh()
def test_033_TUMIUAT_822(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() assert new_find_element( self.driver, my_account.update_my_info).text == 'UPDATE PERSONAL INFORMATION' assert new_find_element( self.driver, my_account.update_my_password).text == 'UPDATE PASSWORD' assert new_find_element( self.driver, my_account.my_address).text == 'MY ADDRESS BOOK'
def test_052_TUMIUAT_832_2(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account2() my_account1.click_update_my_password() my_account1.input_now_password2() my_account1.input_new_password2() my_account1.input_confirm_new_password2() my_account1.click_save_new_password() assert new_find_element(self.driver, my_account.modifly_password_successful ).text == 'Your password has been changed'
def test_041_TUMIUAT_1608(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() my_account1.click_update_my_info() my_account1.clear_account_username() my_account1.input_account_username() my_account1.click_account_call() my_account1.click_call_miss() my_account1.clear_account_email() my_account1.click_account_save_btn() assert new_find_element( self.driver, my_account.email_error).text == 'E-mail is required.'
def test_038_TUMIUAT_825(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() my_account1.click_update_my_info() my_account1.clear_account_username() my_account1.click_account_call() my_account1.click_call_miss() my_account1.clear_account_email() my_account1.input_account_email() my_account1.click_account_save_btn() assert new_find_element( self.driver, my_account.userName_errors).text == 'Please enter a username.'
def test_037_TUMIUAT_824(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() my_account1.click_update_my_info() my_account1.clear_account_username() my_account1.input_account_username() my_account1.click_account_call() my_account1.click_call_miss() my_account1.clear_account_email() my_account1.input_account_email() my_account1.click_account_save_btn() assert new_find_element( self.driver, my_account.update_my_password).text == 'Update Password'
def test_039_TUMIUAT_1604(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() my_account1.click_update_my_info() my_account1.clear_account_username() my_account1.input_account_username() my_account1.click_account_call() my_account1.click_call_null() my_account1.clear_account_email() my_account1.input_account_email() my_account1.click_account_save_btn() assert new_find_element( self.driver, my_account.titleCode_errors).text == 'Please choose your title.'
def test_043_TUMIUAT_1614(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() my_account1.click_address_book_btn() my_account1.click_creat_new_address() my_account1.input_address_consignee() my_account1.input_address_phone() my_account1.click_address_region() my_account1.click_address_beijing() my_account1.click_address_qu() my_account1.click_address_qu1() my_account1.input_address_Detailed() my_account1.click_address_save() assert new_find_element( self.driver, my_account.creat_new_address).text == 'Add Shipping Address'
def test_047_TUMIUAT_1611(self): my_account1 = my_account(self.driver) my_account1.go_to_my_account() my_account1.click_address_book_btn() my_account1.click_creat_new_address() my_account1.input_address_consignee() my_account1.input_address_phone2() my_account1.click_address_region() my_account1.click_address_beijing() my_account1.click_address_qu() my_account1.click_address_qu1() my_account1.input_address_Detailed() my_account1.click_address_save() assert new_find_element( self.driver, my_account.phoneErrors ).text == 'Please enter the correct mobile number'
def test_032_TUMIUAT_821(self): my_account1 = my_account(self.driver) my_account1.go_to_my_info() assert new_find_element( self.driver, my_account.my_account_title).text == 'MY ACCOUNT'