Exemple #1
0
 def billing_info_test(self, webd_wrap):
     
     page_homepage = homepage(webd_wrap)
     page_homepage.get_page()
     page_homepage.click_sign_in()
     page_homepage.sign_in_modal.sign_in()
     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.confirm_page()
     
     webd_wrap.close_the_browser()
    def purchase_signedincc_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_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_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_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()