def test_that_only_browser_reports_have_browser_icon(self, mozwebqa): """ https://www.pivotaltracker.com/story/show/17099455 """ csp = CrashStatsHomePage(mozwebqa) reports_page = csp.click_first_product_top_crashers_link() Assert.equal(reports_page.current_filter_type, 'Browser') for signature_item in reports_page.signature_items: Assert.true(signature_item.is_browser_icon_visible, "Signature %s did not have a browser icon" % signature_item.text) Assert.false(signature_item.is_plugin_icon_visible, "Signature %s unexpextedly had a plugin icon" % signature_item.text)
def test_that_search_for_valid_signature(self, mozwebqa): ''' This is a test for https://bugzilla.mozilla.org/show_bug.cgi?id=609070 ''' csp = CrashStatsHomePage(mozwebqa) reportlist = csp.click_first_product_top_crashers_link() signature = reportlist.first_valid_signature result = csp.header.search_for_crash(signature) Assert.true(result.results_found, result.get_url_current_page())
def test_that_search_for_valid_signature(self, mozwebqa): ''' This is a test for https://bugzilla.mozilla.org/show_bug.cgi?id=609070 ''' csp = CrashStatsHomePage(mozwebqa) reportlist = csp.click_first_product_top_crashers_link() signature = reportlist.first_valid_signature result = csp.header.search_for_crash(signature) Assert.true(result.results_found, result.get_url_current_page())
def test_that_only_plugin_reports_have_plugin_icon(self, mozwebqa): """ https://www.pivotaltracker.com/story/show/17099455 """ csp = CrashStatsHomePage(mozwebqa) reports_page = csp.click_first_product_top_crashers_link() reports_page.click_plugin_filter() signature_list_items = reports_page.signature_list_items for signature_item in signature_list_items: Assert.true(signature_item.is_plugin_icon_visible) Assert.false(signature_item.is_browser_icon_present)
def test_that_only_plugin_reports_have_plugin_icon(self, mozwebqa): """ https://www.pivotaltracker.com/story/show/17099455 """ csp = CrashStatsHomePage(mozwebqa) reports_page = csp.click_first_product_top_crashers_link() reports_page.click_filter_by('Plugin') signature_list_items = reports_page.signature_items for signature_item in signature_list_items: Assert.true(signature_item.is_plugin_icon_visible, "Signature %s did not have a plugin icon" % signature_item.title) Assert.false(signature_item.is_browser_icon_visible, "Signature %s unexpextedly had a browser icon" % signature_item.title)
def test_that_only_plugin_reports_have_plugin_icon(self, mozwebqa): """ https://www.pivotaltracker.com/story/show/17099455 """ csp = CrashStatsHomePage(mozwebqa) reports_page = csp.click_first_product_top_crashers_link() reports_page.click_plugin_filter() signature_list_items = reports_page.signature_list_items for signature_item in signature_list_items: Assert.true(signature_item.is_plugin_icon_visible) Assert.false(signature_item.is_browser_icon_present)
def test_that_selecting_exact_version_doesnt_show_other_versions(self, mozwebqa): csp = CrashStatsHomePage(mozwebqa) product = csp.header.current_product versions = csp.header.current_versions if len(versions) > 0: csp.header.select_version(versions[1]) report_list = csp.click_first_product_top_crashers_link() report = report_list.click_first_valid_signature() for i in range(report.row_count): report = report.get_row(i + 1) Assert.equal(report.product, product, report.get_url_current_page()) Assert.contains(report.version, str(versions[1]))
def test_that_selecting_exact_version_doesnt_show_other_versions(self, mozwebqa): csp = CrashStatsHomePage(mozwebqa) product = csp.header.current_product versions = csp.header.current_versions if len(versions) > 0: csp.header.select_version(str(versions[1])) report_list = csp.click_first_product_top_crashers_link() crash_report_page = report_list.click_first_valid_signature() crash_report_page.click_reports() for report in crash_report_page.reports: Assert.equal(report.product, product) Assert.contains(report.version, str(versions[1]))
def test_that_selecting_exact_version_doesnt_show_other_versions(self, mozwebqa): csp = CrashStatsHomePage(mozwebqa) details = csp.current_details if len(details['versions']) > 0: csp.header.select_version(details['versions'][1]) report_list = csp.click_first_product_top_crashers_link() report = report_list.click_first_valid_signature() count = 0 while count < report.row_count: count += 1 report = report.get_row(count) product = report.product version = report.version Assert.equal(product, details['product'], report.get_url_current_page()) Assert.contains(version, str(details['versions'][1]))