diff --git a/tests/frontend/confirm_controller_test.js b/tests/frontend/confirm_controller_test.js index 21552dbdfb29..3f2b9b294705 100644 --- a/tests/frontend/confirm_controller_test.js +++ b/tests/frontend/confirm_controller_test.js @@ -22,23 +22,18 @@ describe("Confirm controller", () => { document.body.innerHTML = `
Confirm to continue.
{% trans %}Applications or scripts using this token will no longer have access to PyPI.{% endtrans %}
{% endset %} - - {{ confirm_modal(title=title, confirm_name=gettext("Username"), confirm_string=user.username, confirm_button_label=confirm_button_label, slug=slug, extra_fields=extra_fields, action=action, custom_warning_text=token_warning_text, confirm_string_in_title=False) }} - + {{ confirm_password_modal(title=title, confirm_button_label=confirm_button_label, slug=slug, extra_fields=extra_fields, action=action, custom_warning_text=token_warning_text) }} {# modal to view token ID #}{% trans href='https://www.python.org/dev/peps/pep-0440/#post-releases', title=gettext('External link') %}You will not be able to re-upload a new distribution of the same type with the same version number. Consider making a new release or a post release instead.{% endtrans %}
{% endset %} - {{ confirm_modal(title, gettext('Version'), release.version, slug, index=loop.index, custom_warning_text=version_warning_text, action=action) }} + {{ confirm_modal(title, gettext('Version'), release.version, slug, custom_warning_text=version_warning_text, action=action) }} {% endfor %}