trivial: add uppercase to edit button (#65735)

This commit is contained in:
Frédéric Péters 2022-05-27 15:15:07 +02:00
parent 714c5109c6
commit b28d09d175
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@
<span class="actions">
<a class="extra-actions-menu-opener"></a>
{% if object|can_edit:request.user %}
<a rel="popup" href="{{ object.get_edit_url }}">{% trans 'edit' %}</a>
<a rel="popup" href="{{ object.get_edit_url }}">{% trans 'Edit' %}</a>
{% endif %}
{% block actions %}
{% endblock %}

View File

@ -333,7 +333,7 @@ def test_manager(db, app, admin_user, connector):
connector.save()
login(app)
resp = app.get(url)
resp = resp.click('edit')
resp = resp.click('Edit')
assert resp.html.find('div', {'id': 'id_secret_key_p'}).input['value'] == 'yyy'
resp = resp.form.submit()
assert (
@ -346,7 +346,7 @@ def test_manager(db, app, admin_user, connector):
# accept an empty key
resp = app.get(url)
resp = resp.click('edit')
resp = resp.click('Edit')
assert resp.html.find('div', {'id': 'id_secret_key_p'}).input['value'] == '8 bytes!'
resp.form['secret_key'] = ''
resp = resp.form.submit()