def recommend_flow_signup_profile_test(self, webd_wrap): page_homepage = homepage(webd_wrap) page_homepage.get_page() page_homepage.click_bestsellers() page_bestsellers = bestsellers(webd_wrap) page_bestsellers.click_first_book() book_title = page_bestsellers.book_modal.get_book_title() page_bestsellers.book_modal.click_full_profile() page_book = book(webd_wrap) page_book.book_modal.click_recommend() page_book.sign_in_modal.click_sign_up() page_sign_up = sign_up(webd_wrap) page_sign_up.submit_new_member_info() page_book.recommend_modal.submit_recommend() page_book.recommend_modal.close_modal() page_book.click_my_zola() page_my_zola = my_zola(webd_wrap) page_my_zola.first_activity_should_be_recommended_book(book_title) webd_wrap.close_the_browser()
def add_to_list_signedin_profile_test(self, webd_wrap): page_homepage = homepage(webd_wrap) page_homepage.get_page() page_homepage.click_sign_in() page_homepage.sign_in_modal.click_sign_up() page_sign_up = sign_up(webd_wrap) email = page_sign_up.submit_new_member_info() page_find_friends = find_friends(webd_wrap) page_find_friends.click_skip_this() page_homepage.click_sign_out() page_homepage.click_sign_in() page_homepage.sign_in_modal.sign_in(email, 'password') page_homepage.click_first_bestseller() title = page_homepage.book_modal.get_book_title() page_homepage.book_modal.click_full_profile() page_book = book(webd_wrap) page_book.click_add_to_list() page_book.choose_wishlist() page_book.click_my_zola() page_my_zola = my_zola(webd_wrap) page_my_zola.first_activity_should_be_added_book(title) webd_wrap.close_the_browser()
def purchase_signup_profile_test(self, webd_wrap): page_homepage = homepage(webd_wrap) page_homepage.get_page() page_homepage.click_first_bestseller() book_title = page_homepage.book_modal.get_book_title() page_homepage.book_modal.click_full_profile() page_book = book(webd_wrap) page_book.click_buy() page_book.sign_in_modal.click_sign_up() page_sign_up = sign_up(webd_wrap) page_sign_up.submit_new_member_info() page_add_card = add_card(webd_wrap) page_add_card.submit_new_cc_info() page_book.purchase_confirm_modal.click_receive_emails() page_book.purchase_confirm_modal.click_buy() page_book.purchase_confirm_modal.click_done() page_book.click_my_zola() page_my_zola = my_zola(webd_wrap) page_my_zola.first_activity_should_be_purchased_book(book_title) webd_wrap.close_the_browser()
def recommend_flow_notsignedin_profile_test(self, webd_wrap): page_homepage = homepage(webd_wrap) page_homepage.get_page() page_homepage.click_sign_in() page_homepage.sign_in_modal.click_sign_up() page_sign_up = sign_up(webd_wrap) email = page_sign_up.submit_new_member_info() page_find_friends = find_friends(webd_wrap) page_find_friends. click_skip_this() page_homepage.click_sign_out() page_homepage.click_bestsellers() page_bestsellers = bestsellers(webd_wrap) page_bestsellers.click_first_book() book_title = page_bestsellers.book_modal.get_book_title() page_bestsellers.book_modal.click_full_profile() page_book = book(webd_wrap) page_book.click_recommend() page_book.sign_in_modal.sign_in(email, 'password') page_book.recommend_modal.submit_recommend() page_book.recommend_modal.close_modal() page_book.click_my_zola() page_my_zola = my_zola(webd_wrap) page_my_zola.first_activity_should_be_recommended_book(book_title) webd_wrap.close_the_browser()
def purchase_notsignedincc_profile_test(self, webd_wrap): page_homepage = homepage(webd_wrap) page_homepage.get_page() page_homepage.click_sign_in() page_homepage.sign_in_modal.click_sign_up() page_sign_up = sign_up(webd_wrap) email = page_sign_up.submit_new_member_info() page_find_friends = find_friends(webd_wrap) page_find_friends.click_skip_this() page_homepage.click_my_zola() page_my_zola = my_zola(webd_wrap) page_my_zola.click_billing_info() page_billing_info = billing_info(webd_wrap) page_billing_info.click_add_card() page_add_card = add_card(webd_wrap) page_add_card.submit_new_cc_info() page_billing_info.click_back_to_profile() page_my_zola.click_sign_out() page_homepage.click_first_bestseller() book_title = page_homepage.book_modal.get_book_title() page_homepage.book_modal.click_full_profile() page_book = book(webd_wrap) page_book.click_buy() page_book.sign_in_modal.sign_in(email, 'password') page_book.purchase_confirm_modal.click_receive_emails() page_book.purchase_confirm_modal.click_buy() page_book.purchase_confirm_modal.click_done() page_book.click_my_zola() page_my_zola = my_zola(webd_wrap) page_my_zola.first_activity_should_be_purchased_book(book_title) webd_wrap.close_the_browser()
def add_to_list_signup_modal_test(self, webd_wrap): page_homepage = homepage(webd_wrap) page_homepage.get_page() page_homepage.click_first_bestseller() title = page_homepage.book_modal.get_book_title() page_homepage.book_modal.click_full_profile() page_book = book(webd_wrap) page_book.click_add_to_list() page_book.sign_in_modal.click_sign_up() page_sign_up = sign_up(webd_wrap) page_sign_up.submit_new_member_info() page_book.choose_wishlist() page_book.click_my_zola() page_my_zola = my_zola(webd_wrap) page_my_zola.first_activity_should_be_added_book(title) webd_wrap.close_the_browser()