Exemple #1
0
 def test_course_content_tab(self, set_capabilities, setup_logging):
     android_course_dashboard_page = AndroidCourseDashboard(
         set_capabilities, setup_logging)
     android_course_dashboard_page.load_course_content_tab()
     assert android_course_dashboard_page.get_course_header_image(
     ).text == strings.BLANK_FIELD
     assert android_course_dashboard_page.get_last_accessed_bar(
     ).text == strings.BLANK_FIELD
     assert android_course_dashboard_page.get_last_accessed_button(
     ).text == strings.LAST_ACCESSED_BUTTON
     android_course_dashboard_page.load_course_content_list()
Exemple #2
0
 def test_load_resourse_tab(self, set_capabilities, setup_logging):
     android_course_dashboard_page = AndroidCourseDashboard(
         set_capabilities, setup_logging)
     android_course_dashboard_page.load_resourse_tab()
     android_course_dashboard_page.load_resources_content_list()
Exemple #3
0
 def test_load_important_dates_tab(self, set_capabilities, setup_logging):
     android_course_dashboard_page = AndroidCourseDashboard(
         set_capabilities, setup_logging)
     android_course_dashboard_page.load_important_dates_tab()
Exemple #4
0
 def test_load_discussion_tab(self, set_capabilities, setup_logging):
     android_course_dashboard_page = AndroidCourseDashboard(
         set_capabilities, setup_logging)
     android_course_dashboard_page.load_discussion_tab()
Exemple #5
0
 def test_load_contents_smoke(self, set_capabilities, setup_logging):
     android_course_dashboard_page = AndroidCourseDashboard(
         set_capabilities, setup_logging)
     #load and click the elements
     android_course_dashboard_page.load_back_icon()
     android_course_dashboard_page.load_course_dashboard_screen()
     android_course_dashboard_page.load_course_content_tab()
     android_course_dashboard_page.load_vedio_tab()
     android_course_dashboard_page.load_discussion_tab()
     android_course_dashboard_page.load_important_dates_tab()
     android_course_dashboard_page.load_resourse_tab()
Exemple #6
0
 def test_validate_ui_elements(self, set_capabilities, setup_logging):
     android_course_dashboard_page = AndroidCourseDashboard(
         set_capabilities, setup_logging)
     android_course_dashboard_page.load_course_dashboard_screen()
     assert android_course_dashboard_page.on_screen(
     ) == Globals.COURSE_DASHBOARD_ACTIVITY_NAME
     assert android_course_dashboard_page.get_course_detail_name()
     assert android_course_dashboard_page.get_share_icon()
     assert android_course_dashboard_page.get_back_icon()
     assert android_course_dashboard_page.get_vedio_tab()
     assert android_course_dashboard_page.get_discussion_tab()
     assert android_course_dashboard_page.get_important_dates_tab()
     assert android_course_dashboard_page.get_resourse_tab()
     assert android_course_dashboard_page.get_course_content_tab()