#30974: Selenium asserts should be wait statements
-----------------------------------+--------------------------------------
Reporter: Johannes Hoppe | Owner: nobody
Type: Bug | Status: assigned
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Comment (by Johannes Hoppe):
Haha on my first patch push a test failed like this:
{{{
Traceback (most recent call last):
File "/home/jenkins/workspace/pull-requests-
selenium/database/postgres/label/bionic-
pr/python/python3.7/tests/admin_views/test_autocomplete_view.py", line
256, in test_select_multiple
self.assertEqual(len(select.all_selected_options), 2)
AssertionError: 1 != 2
}}}
I believe there might be a lot of places that would need to use wait over
assert ;)
--
Ticket URL: <https://code.djangoproject.com/ticket/30974#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.e0063f1edb8e904009a5448ebd418bdb%40djangoproject.com.