summaryrefslogtreecommitdiff
path: root/tests/admin_views/test_autocomplete_view.py
AgeCommit message (Collapse)Author
2024-10-16Refs #35727 -- Updated response.content.decode calls to use the ↵SaJH
HttpResponse.text property. Signed-off-by: SaJH <wogur981208@gmail.com>
2024-04-17Made SeleniumTests.test_inline_add_another_widgets less flaky by adding ↵Marijke Luttekes
explicit wait.
2023-11-28Removed hard-coded expected results in SeleniumTests.test_select_multiple test.nessita
This ensures that both tests, test_select() and test_select_multiple(), use analogous calculations for the expected amount of results, and for the iteration when pressing "arrow down" and waiting for the ajax call to complete.
2023-10-19Made SeleniumTests.test_select_multiple less flaky by improving Selenium waits.Sarah Boyce
2023-07-07Refs #9602 -- Moved AlreadyRegistered/NotRegistered exceptions to ↵Mariusz Felisiak
django.contrib.admin.exceptions.
2023-07-07Fixed #9602 -- Added AdminSite.get_model_admin().Mariusz Felisiak
This allows retrieving an admin class for the given model class without using internal attributes.
2023-07-05Made some Selenium tests less flaky by adding explicit wait.sarahboyce
2023-06-13Made SeleniumTests.test_select_multiple less flaky by adding explicit ↵sarahboyce
Selenium wait.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-10-21Fixed #33211 -- Updated tests for Selenium 4.0.0.Carlton Gibson
Replaced deprecated `find_element[s]_by_*()` usages, in favour of `find_element[s]()` with an explicit `By`.
2021-10-21Refs #33211 -- Added assertCountSeleniumElements() test helper.Carlton Gibson
2021-08-10Fixed #32993 -- Added AutocompleteJsonView.serialize_result() to allow ↵Mart Sõmermaa
customization.
2021-03-18Fixed #32466 -- Corrected autocomplete to_field resolution for complex cases.Johannes Maron
In MTI or ForeignKey as primary key cases, it is required to fetch the attname from the field instance on the remote model in order to reliably resolve the to_field_name. Co-authored-by: Johannes Maron <info@johanneshoppe.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2021-03-18Refs #29138 -- Added extra tests for autocomplete FK to_field variations.Johannes Maron
2021-03-10Removed unnecessary lines in test_has_view_or_change_permission_required().Mariusz Felisiak
AutocompleteJsonViewTests.user is already a staff member.
2021-01-12Fixed #29010, Fixed #29138 -- Added limit_choices_to and to_field support to ↵Johannes Maron
autocomplete fields. * Fixed #29010 -- Added limit_choices_to support to autocomplete fields. * Fixed #29138 -- Allowed autocomplete fields to target a custom to_field rather than the PK.
2019-11-29Fixed #29892 -- Added explicit Selenium wait in admin autocomplete tests.Carlton Gibson
2019-08-27Fixed #30722 -- Added default rate-limiting requests to admin's Select2 widget.Federico Jaramillo Martínez
2019-07-10Updated Select2 to version 4.0.7.Johannes Hoppe
2018-06-18Fixed #29502 -- Allowed users with the view permission to use ↵Carlton Gibson
autocomplete_fields.
2017-12-01Fixed #28871 -- Fixed initialization of autocomplete widgets in "Add ↵Tim Graham
another" inlines. Also allowed autocomplete widgets to work on AdminSites with a name other than 'admin'.
2017-12-01Used a separate admin site for autocomplete tests.Tim Graham
2017-09-18Fixed #14370 -- Allowed using a Select2 widget for ForeignKey and ↵Johannes Hoppe
ManyToManyField in the admin. Thanks Florian Apolloner and Tim Graham for review and contributing to the patch.