#29892 closed Bug (fixed)
Multiple Selenium test failures in Firefox
Reported by: | Tom Forbes | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | jon.dufresne@… | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When running the Selenium tests on master with the latest Firefox (63) installed on MacOS 10.14 I get the following tests failing:
test_textarea_trailing_newlines (forms_tests.tests.test_widgets.LiveWidgetTests) test_select (admin_views.test_autocomplete_view.SeleniumTests) test_prepopulated_fields (admin_views.tests.SeleniumTests) test_date_time_picker_shortcuts (admin_widgets.tests.DateTimePickerAltTimezoneSeleniumTests) test_date_time_picker_shortcuts (admin_widgets.tests.DateTimePickerShortcutsSeleniumTests) test_select_multiple (admin_views.test_autocomplete_view.SeleniumTests) test_first_field_focus (admin_views.tests.SeleniumTests)
Two of these failures do not appear at first to be related to the browser itself, however interestingly enough they do not fail on Chrome at all and reliably fail on Firefox.
I've also attached full stacktraces below.
Attachments (1)
Change History (14)
by , 6 years ago
Attachment: | failures.txt added |
---|
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Resolution: | → needsinfo |
---|---|
Status: | new → closed |
Yes, the selenium tests haven't worked on Firefox since the switch to geckodriver. Feel free to reopen and submit a patch if you find that Django is at fault.
comment:3 by , 6 years ago
Ok, thanks for the info. If I have time to investigate I will look into the two Python failures as they are the most suspicious.
comment:4 by , 5 years ago
Cc: | added |
---|
I think some of the failures are due to the behavior described in https://github.com/mozilla/geckodriver/issues/878 That is, the current page isn't invalidated after a .submit()
call so selenium driver doesn't wait for a page reload.
If I understand the Firefox people correctly, Element.submit()
should not be used as it isn't a WebDriver primitive.
comment:5 by , 5 years ago
Has patch: | set |
---|
PR https://github.com/django/django/pull/12147 for tests:
test_date_time_picker_shortcuts (admin_widgets.tests.DateTimePickerAltTimezoneSeleniumTests) test_date_time_picker_shortcuts (admin_widgets.tests.DateTimePickerShortcutsSeleniumTests)
(I think this ticket should be reopened.)
comment:6 by , 5 years ago
Resolution: | needsinfo |
---|---|
Status: | closed → new |
Triage Stage: | Unreviewed → Accepted |
PR to fix all tests with Firefox.
comment:9 by , 5 years ago
Resolution: | fixed |
---|---|
Status: | closed → new |
Ooops. I should have updated the commit message on 875e3ff4fd883e11008ca9dfcf02b8314c57c0a6 to be Refs
. PR12152 is still incoming.
comment:10 by , 5 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
FWIW I had to disable selenium tests on a lot of projects on FF since they moved to WebDriver as it broke a lot of stuff.