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_001_failing_download_homework(self): driver = self.driver go_lesson_page = UrlHomeSchool(driver) step_assert = AssertForTest025(driver) # Перейти на страницу урока Математика, 1 класс , неделя 13 (19 ноября - 24 ноября)Задача (условие, вопрос)."): go_lesson_page.go_to_lesson_page_1_klass() # В шаге № 1 Якласса отображается заглушка с текстом Доступ к материалам ограничен"): step_assert.check_step_one() # В шаге №2 отображается заглушка В формате обучения «С учителем» вы сможете загрузить свое решение."): step_assert.check_step_two()
def test_006_click_button_next_step(self): driver = self.driver step_lesson_page = LessonPage(driver) step_go_dz = UrlHomeSchool(driver) step_assert = AssertForTest014(driver) step_lesson_page.click_button_next_step() step_assert.check_redirect_url() step_go_dz.go_to_lesson_page_tab_homework() step_assert.check_button_go_to_schedule()
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_002_check_tour_in_lesson_page(self): driver = self.driver go_lesson_page = UrlHomeSchool(driver) step_lesson_page = LessonPage(driver) step_assert = AssertForTest014(driver) # Перейти на страницу видеоурока История, 7 класс , неделя 23 (3 февраля - 8 февраля) go_lesson_page.go_to_lesson_page_test() # Пройти весь тур кликнув Далее 5 раз step_lesson_page.click_button_next_in_tour() step_lesson_page.click_button_prew_in_tour() step_lesson_page.click_button_close_in_tour() step_assert.check_text_show_summary() step_assert.check_button_display_show_next_step() step_assert.check_display_show_block_ask_question()
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_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_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()
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()
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_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")
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()