Closed Bug 803750 Opened 12 years ago Closed 12 years ago

[socorro-crashstats] test_that_plugin_filters_result and test_that_filter_for_browser_results fail

Categories

(Socorro :: Webapp, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stephend, Assigned: rhelmer)

References

Details

test_that_plugin_filters_result [1] and test_that_filter_for_browser_results fail, and both in this line: cs_advanced.select_report_process('Plugins'), or: cs_advanced.select_report_process('Browser') self = <tests.test_search.TestSearchForIdOrSignature instance at 0x20b8f30> mozwebqa = <pytest_mozwebqa.pytest_mozwebqa.TestSetup instance at 0x20b33a0> @pytest.mark.prod @pytest.mark.nondestructive def test_that_plugin_filters_result(self, mozwebqa): """ https://www.pivotaltracker.com/story/show/17769047 https://bugzilla.mozilla.org/show_bug.cgi?id=562380 """ csp = CrashStatsHomePage(mozwebqa) cs_advanced = csp.header.click_advanced_search() cs_advanced.adv_select_product('Firefox') cs_advanced.deselect_version() # Select 2nd Featured Version (3rd selection in dropdown) cs_advanced.adv_select_version_by_index(2) cs_advanced.adv_select_os('Windows') > cs_advanced.select_report_process('Plugins') tests/test_search.py:149: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pages.advanced_search_page.CrashStatsAdvancedSearch object at 0x2055bd0> lookup = 'Plugins' def select_report_process(self, lookup): base = self.selenium.find_element(*self._report_process_base_locator) > input_element = base.find_element(By.XPATH, "//label[normalize-space(text())='%s']/input" % lookup) pages/advanced_search_page.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <selenium.webdriver.remote.webelement.WebElement object at 0x209ae90> by = 'xpath', value = "//label[normalize-space(text())='Plugins']/input" [1] https://github.com/mozilla/Socorro-Tests/blob/master/tests/test_search.py#L135 [2] https://github.com/mozilla/Socorro-Tests/blob/master/tests/test_search.py#L115
Assignee: nobody → rhelmer
Status: NEW → ASSIGNED
The problem here is that the selenium test is too picky - the only change is reformatting of the HTML. This should use the name and value attributes of the input element, instead.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Sorry, just now got to this; test_that_filter_for_browser_results is still failing (but is also, on staging). rhelmer, should we reopen this, or just spin off a new bug? http://qa-selenium-stage.mv.mozilla.com:8080/job/socorro.dev.redesign/426/HTML_Report/?
You need to log in before you can comment on or make changes to this bug.