Пример #1
0
    def test_buy_ege_course(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 = AssertForTest002(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_nine_month_in_ege()
        step_buy.click_off_button_auto_payments_in_ege()
        step_buy.click_button_pay_ege_online()
        step_assert.price_amount_displayed_in_demo_kassa_ege_hs02()
        step_assert.check_block_select_payment_types()
        step_buy.enter_data_card()
        time.sleep(5)
        step_go_to_profile.go_to_my_profile()
        step_refresh.refresh()
        step_assert.check_text_in_widget_my_ege()
Пример #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()
Пример #3
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")
Пример #5
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()
    def test_off_auto_payment(self):
        driver = self.driver
        step_tilda = TildaPage(driver)
        step_enter = PopupSignIn(driver)
        step_user = Hs02(driver)
        step_go_to_profile = UrlHomeSchool(driver)
        step_refresh = Refresh(driver)
        step_assert = AssertForTest007(driver)
        step_off = OffAutoPayInSchool(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_off.click_off_auto_pay_in_widget()
        step_off.click_off_auto_pay_in_tooltip()
        step_off.click_off_auto_pay_in_popup()
        step_refresh.refresh()
        step_assert.check_text_in_widget_my_school()