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) report_list = csp.click_first_product_top_crashers_link() signature = report_list.first_valid_signature_title result = csp.header.search_for_crash(signature) Assert.true(result.are_results_found)
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.title) Assert.false(signature_item.is_plugin_icon_visible, "Signature %s unexpextedly had a plugin icon" % signature_item.title)
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]))