コード例 #1
0
 def test_author_can_delete_draft_course(self, browser):
     page = MainPage(browser)
     page.open()
     page.author_login()
     page1 = CoursePage(browser)
     page1.delete_draft_course()
コード例 #2
0
 def test_author_can_unhide_course(self, browser):
     page = MainPage(browser)
     page.open()
     page.author_login_with_avatar()
     page1 = CoursePage(browser)
     page1.unhide_course()
コード例 #3
0
def test_courses_list(browser_is_opened):
    main_page = MainPage(*browser_is_opened)
    courses_cnt_main = main_page.get_cnt_courses()
    course_page = CoursePage(*browser_is_opened)
    courses_cnt_calc = course_page.calc_courses_cnt()
    assert courses_cnt_calc == courses_cnt_main