Beispiel #1
0
    def test_buy_ege_course(self):
        driver = self.driver
        step_tilda = TildaPage(driver)
        step_enter = PopupSignIn(driver)
        step_user = Hs01(driver)
        step_go_to_profile = UrlHomeSchool(driver)
        step_profile = MyProfile(driver)
        step_buy = PageSubscribe(driver)
        step_assert = AssertForTest001(driver)
        step_refresh = Refresh(driver)

        step_tilda.click_login_button()
        step_user.enter_email(user_name="*****@*****.**")
        step_user.enter_password(password="******")
        step_enter.click_button_login()
        step_go_to_profile.go_to_my_profile()
        step_profile.click_button_pay_other_classes()
        step_buy.click_button_see_tab_one_ege_curse()
        step_buy.choose_period_one_month_in_ege()
        step_buy.click_button_pay_ege_independent()
        step_assert.price_amount_displayed_in_demo_kassa_ege_hs01()
        step_assert.not_display_select_payment_types()
        step_buy.enter_data_card()
        step_go_to_profile.go_to_my_profile()
        time.sleep(5)
        step_refresh.refresh()
        step_assert.check_text_in_widget_my_ege()
Beispiel #2
0
    def test_extend_course_school(self):
        driver = self.driver
        step_tilda = TildaPage(driver)
        step_enter = PopupSignIn(driver)
        step_user = Hs02(driver)
        step_go_to_profile = UrlHomeSchool(driver)
        step_profile = MyProfile(driver)
        step_buy = PageSubscribe(driver)
        step_assert = AssertForTest006(driver)
        step_refresh = Refresh(driver)

        step_tilda.click_login_button()
        step_user.enter_email(user_name="*****@*****.**")
        step_user.enter_password(password="******")
        step_enter.click_button_login()
        step_go_to_profile.go_to_my_profile()
        step_profile.click_button_extend_access()
        step_buy.extend_service_personal_mentor()
        step_assert.check_text_in_tab_total()
        step_buy.click_button_pay_school()
        step_assert.price_amount_displayed_in_demo_kassa()
        step_buy.enter_data_card()
        step_go_to_profile.go_to_my_profile()
        time.sleep(5)
        step_refresh.refresh()
        step_assert.check_text_in_widget_my_school()
    def test_buy_trial_access(self):
        driver = self.driver
        step_tilda = TildaPage(driver)
        step_enter = PopupSignIn(driver)
        step_user = Hs04(driver)
        step_go_to_profile = UrlHomeSchool(driver)
        step_assert = AssertForTest026(driver)
        step_subscribe = PageSubscribe(driver)

        step_tilda.click_login_button()
        step_user.enter_email(user_name="*****@*****.**")
        step_user.enter_password(password="******")
        step_enter.click_button_login()
        step_go_to_profile.go_to_page_subjects_subscribe()
        step_subscribe.choose_tariff_with_enrollment()
        step_assert.check_text_block_tariff_change()
        step_assert.check_button_pay_abonement()
Beispiel #4
0
    def test_buy_trial_access(self):
        driver = self.driver
        step_tilda = TildaPage(driver)
        step_enter = PopupSignIn(driver)
        step_user = Hs04(driver)
        step_go_to_profile = UrlHomeSchool(driver)
        step_refresh = Refresh(driver)
        step_assert = AssertForTest010(driver)
        step_profile = MyProfile(driver)
        step_subscribe = PageSubscribe(driver)

        step_tilda.click_login_button()
        step_user.enter_email(user_name="*****@*****.**")
        step_user.enter_password(password="******")
        step_enter.click_button_login()
        step_go_to_profile.go_to_my_profile()
        step_profile.click_button_pay_school_in_pd()
        step_assert.check_text_in_tab_6()
        step_subscribe.click_button_pay_school()
        step_assert.price_amount_displayed_in_demo_kassa()
        step_subscribe.enter_data_card()
        step_go_to_profile.go_to_my_profile()
        time.sleep(5)
        step_refresh.refresh()
        step_assert.check_text_in_widget_my_school()
Beispiel #5
0
    def test_buy_learning_per_nine_month(self):
        driver = self.driver
        step_school = LandingPage(driver)
        step_user = Hs03(driver)
        step_go_to_profile = UrlHomeSchool(driver)
        step_profile = MyProfile(driver)
        step_buy = PageSubscribe(driver)
        step_assert = AssertForTest003(driver)
        step_refresh = Refresh(driver)

        step_school.click_button_to_start()
        step_user.reg_email(user_name="*****@*****.**")
        step_user.reg_password(password="******")
        step_user.reg_mobile(number="+7123456789")
        step_school.click_sign_up()
        step_go_to_profile.go_to_my_profile()
        step_profile.click_button_pay_for_access()
        step_buy.select_ten_class()
        step_buy.choose_tariff_with_enrollment()
        step_buy.choose_period_nine_month()
        step_buy.selected_service_personal_mentor()
        step_buy.click_off_button_auto_payments_in_curse()
        step_assert.check_text_in_tab_6()
        step_buy.click_button_pay_school()
        step_assert.price_amount_displayed_in_demo_kassa()
        step_assert.not_display_select_payment_types()
        step_buy.enter_data_card()
        step_go_to_profile.go_to_my_profile()
        step_refresh.refresh()
        step_assert.check_text_in_widget_my_school()
    def test_buy_learning_per_three_month(self):
        driver = self.driver
        step_school = LandingPage(driver)
        step_user = Hs02(driver)
        step_go_to_profile = UrlHomeSchool(driver)
        step_profile = MyProfile(driver)
        step_buy = PageSubscribe(driver)
        step_assert = AssertForTest002(driver)
        step_refresh = Refresh(driver)

        step_school.click_button_to_start()
        step_user.reg_email(user_name="*****@*****.**")
        step_user.reg_password(password="******")
        step_user.reg_mobile(number="+712345678")
        step_school.click_sign_up()
        step_go_to_profile.go_to_my_profile()
        step_profile.click_button_pay_for_access()
        step_buy.select_seven_class()
        step_buy.choose_period_three_month()
        step_buy.choose_tariff_with_the_teacher()
        step_buy.selected_service_personal_mentor()
        step_assert.check_text_in_tab_6()
        step_buy.click_button_pay_school()
        step_assert.price_amount_displayed_in_demo_kassa()
        step_assert.not_display_select_payment_types()
        step_buy.enter_data_card()
        step_go_to_profile.go_to_my_profile()
        step_refresh.refresh()
        step_assert.check_text_in_widget_my_school()
        driver.get("https://web-dev01.interneturok.ru/school")