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")
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()
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_000_go_lesson_page(self): driver = self.driver step_tilda = TildaPage(driver) step_enter = PopupSignIn(driver) step_user = Hs02(driver) step_tilda.click_login_button() step_user.enter_email(user_name="*****@*****.**") step_user.enter_password(password="******") step_enter.click_button_login()
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()
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()
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()
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()
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()