summaryrefslogtreecommitdiff
path: root/tests/admin_widgets/tests.py
AgeCommit message (Collapse)Author
2023-02-01[4.2.x] Refs #33476 -- Applied Black's 2023 stable style.David Smith
Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 Backport of 097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 from main
2022-10-27Refs #19215 -- Fixed admin_widgets tests if Pillow isn't installed.Mariusz Felisiak
Follow up to c0fc1b5302f5d9d82e2255fb5758321fbac34949.
2022-10-25Fixed #19215 -- Fixed rendering ClearableFileInput when editing with invalid ↵Marcelo Galigniana
files. Thanks Michael Cardillo for the initial patch.
2022-10-24Fixed flaky test_ForeignKey_using_to_field test.Marcelo Galigniana
2022-06-28Fixed #33805 -- Made admin's many-to-many widgets do not display help text ↵Ankur
for selecting values when allow_multiple_selected is False.
2022-02-28Fixed #33524 -- Allowed overriding empty_label for ForeignKey in ↵Hrushikesh Vaidya
ModelAdmin.radio_fields.
2022-02-25Fixed #33267 -- Added link to related item to related widget wrapper in admin.Shubh1815
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-11-29Fixed #32545 -- Improved admin widget for raw_id_fields for UUIDFields.Shubh1815
Co-Authored-By: Jerome Leclanche <jerome@leclan.ch>
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-09-16Fixed #32365 -- Made zoneinfo the default timezone implementation.Carlton Gibson
Thanks to Adam Johnson, Aymeric Augustin, David Smith, Mariusz Felisiak, Nick Pope, and Paul Ganssle for reviews.
2021-09-14Fixed #32873 -- Deprecated settings.USE_L10N.Claude Paroz
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-04-29Fixed capitalization of "ECMAScript" and "JavaScript".Nick Pope
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-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.
2020-06-03Fixed CVE-2020-13596 -- Fixed potential XSS in admin ForeignKeyRawIdWidget.Jon Dufresne
2020-06-01Fixed #31536 -- Fixed rendering of disabled AdminFileWidget and ↵Carles Pina
ClearableFileInput.
2020-05-13Fixed #31576 -- Fixed selenium tests with headless mode.Mariusz Felisiak
Horizontal scrollbar doesn't appear with the headless mode on small windows, that's why window.scrollTo() is not an option for these tests. Tests changed after adding a navigation sidebar in 46fe506445666d8097945f0c1e8be11cfd644b28.
2020-05-11Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne
The method has been available since Python 3.6. The shorter syntax is also marginally faster.
2020-05-05Made DateTimePickerShortcutsSeleniumTests.test_date_time_picker_shortcuts() ↵Mariusz Felisiak
less flaky. Moved picking the current time closer to the actual click.
2020-05-04Changed `'%s' % value` pattern to `str(value)`.Nick Pope
2020-04-15Fixed #31462 -- Allowed overriding autocomplete/raw_id_fields/filter widgets ↵007
for ManyToManyFields with formfield_overrides.
2019-12-02Refs #29892 -- Made Selenium tests wait for popups to be ready.Jon Dufresne
2019-11-28Fixed #31042 -- Removed AdminSeleniumTestCase.get_css_value() in favor of ↵Jon Dufresne
Selenium .is_displayed(). All instances of AdminSeleniumTestCase.get_css_value() were used to inspect the display property.
2019-11-28Refs #29892 -- Replaced Selenium .submit() shim with .click() on the submit ↵Jon Dufresne
button. There is no WebDriver submit primitive. The Selenium project implements it as a convenience only. The geckodriver developers recommend against using it. Replace it with a real primitive, click on the submit button. Fixes failing Seleninum test test_date_time_picker_shortcuts when using the Firefox Selenium driver.
2019-11-27Fixed #30975 -- Replaced custom get_select_option with Selenium's ↵Johannes Hoppe
select_by_value.
2019-11-27Fixed #30973 -- Converted selenium tests wait_page_loaded to context manager.Johannes Hoppe
2019-11-19Removed unnecessary numeric indexes in format strings.Jon Dufresne
2019-06-30Fixed broken selenium tests after 42b9a23267f14be39b9b00958e18d5746783208e.Mariusz Felisiak
2019-06-28Fixed #30400 -- Improved typography of user facing strings.Jon Dufresne
Thanks Claude Paroz for assistance with translations.
2019-06-03Fixed CVE-2019-12308 -- Made AdminURLFieldWidget validate URL before ↵Carlton Gibson
rendering clickable link.
2019-01-28Fixed #30137 -- Replaced OSError aliases with the canonical OSError.Jon Dufresne
Used more specific errors (e.g. FileExistsError) as appropriate.
2018-11-19Fixed #29961 -- Made RelatedFieldWidgetWrapper hide related item links if ↵redodo
wrapping a hidden widget.
2018-08-18Fixed #29426 -- Made UUID inputs in the admin match the width of a UUID.mackong
2018-02-01Fixed #29094 -- Fixed crash when entering an invalid uuid in ↵Tim Graham
ModelAdmin.raw_id_fields. Regression in 2f9861d823620da7ecb291a8f005f53da12b1e89. Thanks Carel Burger for the report and fix.
2018-01-21Fixed #29038 -- Removed closing slash from HTML void tags.Jon Dufresne
2018-01-20Fixed #29041 -- Changed SelectMultiple's multiple attribute to HTML5 boolean ↵Jon Dufresne
syntax.
2017-08-26Complemented datetime picker selenium testClaude Paroz
This includes test coverage for the calendarMonth JS function in calendar.js
2017-06-09Refs #27953 -- Removed hardcoded uses of Model.__str__() in tests.Collin Anderson
2017-06-06Fixed #28278 -- Fixed invalid HTML for a required AdminFileWidget.kakulukia
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-03-07Fixed #27905 -- Added RelatedFieldWidgetWrapper.value_omitted_from_data().Raphael Merx
2017-02-20Fixed #27850 -- Made RelatedFieldWidgetWrapper call render() of the wrapped ↵Collin Anderson
widget.
2017-02-03Fixed spelling of "nonexistent".Tim Graham
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz