Esempio n. 1
0
 def test_video_srcs_are_valid(self, mozwebqa):
     mission_page = Mission(mozwebqa)
     mission_page.go_to_page()
     bad_srcs = []
     for src in mission_page.video_sources_list:
         if not mission_page.is_valid_link(src):
             bad_srcs.append('%s is not a valid url' % src)
     Assert.equal(0, len(bad_srcs), '%s bad urls found: ' % len(bad_srcs) + ', '.join(bad_srcs))
Esempio n. 2
0
 def test_major_link_urls_are_valid(self, mozwebqa):
     mission_page = Mission(mozwebqa)
     mission_page.go_to_page()
     bad_urls = []
     for link in mission_page.major_links_list:
         url = mission_page.link_destination(link.get('locator'))
         if not mission_page.is_valid_link(url):
             bad_urls.append('%s is not a valid url' % url)
     Assert.equal(0, len(bad_urls), '%s bad urls found: ' % len(bad_urls) + ', '.join(bad_urls))