def purchase_signedin_list_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_bestsellers()
        
        page_bestsellers = bestsellers(webd_wrap)
        book_title = page_bestsellers.get_eighth_book_title()
        page_bestsellers.click_buy_eighth_book()

        page_add_card = add_card(webd_wrap)
        page_add_card.submit_new_cc_info()
        
        page_bestsellers.purchase_confirm_modal.click_receive_emails()
        page_bestsellers.purchase_confirm_modal.click_buy()
        page_bestsellers.purchase_confirm_modal.click_done()
        
        page_bestsellers.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 rating_signedin_modal_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_bestsellers()
     
     page_bestsellers = bestsellers(webd_wrap)
     page_bestsellers.click_first_book()
     book_title = page_bestsellers.book_modal.get_book_title()
     page_bestsellers.book_modal.rate()
     page_bestsellers.book_modal.close_modal()
     
     page_bestsellers.click_my_zola()
     
     page_my_zola = my_zola(webd_wrap)
     page_my_zola.first_activity_should_be_rated_book(book_title)
 
     webd_wrap.close_the_browser()
    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 more_zola_bestsellers_test(self, webd_wrap):
     
     page_homepage = homepage(webd_wrap)
     page_homepage.get_page()
     page_homepage.click_more_zola_bestsellers()
     
     page_bestsellers = bestsellers(webd_wrap)
     page_bestsellers.confirm_page()
     
     webd_wrap.close_the_browser()
예제 #5
0
    def rating_signup_list_test(self, webd_wrap):
        page_homepage = homepage(webd_wrap)
        page_homepage.get_page()
        page_homepage.click_bestsellers()

        page_bestsellers = bestsellers(webd_wrap)
        book_title = page_bestsellers.get_first_book_title()
        page_bestsellers.rate_first_book()
        page_bestsellers.sign_in_modal.click_sign_up()

        page_sign_up = sign_up(webd_wrap)
        page_sign_up.submit_new_member_info()

        page_bestsellers.click_my_zola()

        page_my_zola = my_zola(webd_wrap)
        page_my_zola.first_activity_should_be_rated_book(book_title)

        webd_wrap.close_the_browser()