Beispiel #1
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 #2
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()
Beispiel #3
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()
Beispiel #4
0
 def test_000_aut_in_vk_user(self):
     driver = self.driver
     auth_vk = SocialVk(driver)
     get_main_page = UrlHomeSchool(driver)
     open_popup_auth = TildaPage(driver)
     # Зайти на сайт ВК, авторизоваться П (8615883823494/Testng1991)"):
     auth_vk.auth_user_vk()
     get_main_page.go_to_tilda_landing()
     open_popup_auth.click_login_button()
    def test_000_go_lesson_page(self):
        driver = self.driver
        step_tilda = TildaPage(driver)
        step_enter = PopupSignIn(driver)
        step_user = Hs01(driver)

        step_tilda.click_login_button()
        step_user.enter_email(user_name="*****@*****.**")
        step_user.enter_password(password="******")
        step_enter.click_button_login()
Beispiel #6
0
    def test_open_chosen_subject(self):
        driver = self.driver
        step_tilda = TildaPage(driver)
        step_enter = PopupSignIn(driver)
        step_user = Hs02(driver)
        step_assert = AssertForTest012(driver)
        step_schedule = SchedulePage(driver)

        step_tilda.click_login_button()
        step_user.enter_email(user_name="*****@*****.**")
        step_user.enter_password(password="******")
        step_enter.click_button_login_and_wait_donwload_main_page()
        step_schedule.click_button_chosen_subject()
        step_assert.check_text_in_page_chosen_subject()
Beispiel #7
0
    def test_check_ball_for_student(self):
        driver = self.driver
        step_tilda = TildaPage(driver)
        step_enter = PopupSignIn(driver)
        step_user = Hs02(driver)
        step_url = UrlHomeSchool(driver)
        step_assert = AssertForTest027(driver)

        step_tilda.click_login_button()
        step_user.enter_email(user_name="*****@*****.**")
        step_user.enter_password(password="******")
        step_enter.click_button_login()
        step_url.go_to_lesson_page_tab_homework()
        step_assert.check_bal_in_homweork_for_lesson_page()
    def test_go_list_activities(self):
        driver = self.driver
        step_tilda = TildaPage(driver)
        step_enter = PopupSignIn(driver)
        step_user = Hs02(driver)
        step_assert = AssertForTest011(driver)
        step_list = SchedulePage(driver)

        step_tilda.click_login_button()
        step_user.enter_email(user_name="*****@*****.**")
        step_user.enter_password(password="******")
        step_enter.click_button_login_and_wait_donwload_main_page()
        step_list.click_button_list_all_activities()
        step_assert.check_text_in_page_list_all_activities()
    def test_go_feed(self):
        driver = self.driver
        step_tilda = TildaPage(driver)
        step_enter = PopupSignIn(driver)
        step_user = Hs02(driver)
        step_assert = AssertForTest016(driver)
        step_schedule = SchedulePage(driver)

        step_tilda.click_login_button()
        step_user.enter_email(user_name="*****@*****.**")
        step_user.enter_password(password="******")
        step_enter.click_button_login()
        step_schedule.go_to_feed()
        step_assert.check_text_all_page()
        step_assert.check_url()
Beispiel #10
0
    def test_check_player_iu(self):
        driver = self.driver
        get_lesson = UrlHomeSchool(driver)
        steps_video = LessonPage(driver)
        step_tilda = TildaPage(driver)
        step_user = Hs02(driver)
        step_enter = PopupSignIn(driver)
        step_assert = AssertForTest023(driver)

        step_tilda.click_login_button()
        step_user.enter_email(user_name="*****@*****.**")
        step_user.enter_password(password="******")
        step_enter.click_button_login()
        get_lesson.go_to_lesson_tab_video()
        steps_video.click_play_video_iu()
        step_assert.check_button_play_video()
class LoginAndCheckEmailForUser(OpenTilda):
    def test_check_email_user(self):
        self.tilda_page = TildaPage(self.driver)
        self.popup_sigin = PopupSignIn(self.driver)
        self.user = Hs05(self.driver)
        self.go = UrlHomeSchool(self.driver)
        self.assert_step = AssertForTest017(self.driver)
        self.save = SaveScreen(self.driver)

        self.tilda_page.click_login_button()
        self.user.enter_email(user_name="*****@*****.**")
        self.user.enter_password(password="******")
        self.popup_sigin.click_button_login()
        self.go.go_to_my_profile()
        self.assert_step.check_email_in_user()
        self.save.screen()
    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 #13
0
    def test_exit_profile(self):
        driver = self.driver
        step_tilda = TildaPage(driver)
        step_enter = PopupSignIn(driver)
        step_user = Hs05(driver)
        step_schedule = SchedulePage(driver)
        step_assert = AssertForTest019(driver)
        step_delete = DeleteModalPopup(driver)

        step_tilda.click_login_button()
        step_user.enter_email(user_name="*****@*****.**")
        step_user.enter_password(password="******")
        step_enter.click_button_login()
        step_delete.delete_popup_trial()
        step_schedule.click_button_my_profile()
        step_schedule.click_text_exit()
        step_assert.check_button_name_enter()
        step_assert.check_url()
Beispiel #14
0
    def test_written_review(self):
        driver = self.driver
        step_tilda = TildaPage(driver)
        step_enter = PopupSignIn(driver)
        step_user = Hs02(driver)
        step_assert = AssertForTest013(driver)
        step_schedule = SchedulePage(driver)

        step_tilda.click_login_button()
        step_user.enter_email(user_name="*****@*****.**")
        step_user.enter_password(password="******")
        step_enter.click_button_login()
        step_schedule.click_button_review_block()
        step_schedule.written_text_in_review_block()
        step_schedule.click_button_send_text_review()
        step_assert.check_popup_thanks_for_the_feedback()
        step_schedule.click_button_close_popup_feedback()
        step_assert.popup_thanks_for_the_feedback_not_display()
Beispiel #15
0
    def test_passed(self):
        driver = self.driver
        step_tilda = TildaPage(driver)
        step_enter = PopupSignIn(driver)
        step_user = Hs02(driver)
        url_go = UrlHomeSchool(driver)
        steps_test = LessonPage(driver)
        ask_test = Test(driver)
        assert_step = AssertForTest021(driver)

        step_tilda.click_login_button()
        step_user.enter_email(user_name="*****@*****.**")
        step_user.enter_password(password="******")
        step_enter.click_button_login()
        url_go.go_to_lesson_tab_test_iu()
        steps_test.go_test()
        ask_test.start_test()
        ask_test.click_button_finish()
        assert_step.check_button_finish_test()
    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()