lingo: got back to regie list liew after edition cancel (#33050)
This commit is contained in:
parent
64f2492280
commit
2eaeeb3670
|
@ -16,7 +16,7 @@
|
|||
{{ form.as_p }}
|
||||
<div class="buttons">
|
||||
<button class="submit-button">{% trans "Save" %}</button>
|
||||
<a class="cancel" href="{% url 'lingo-manager-homepage' %}">{% trans 'Cancel' %}</a>
|
||||
<a class="cancel" href="{% url 'lingo-manager-regie-list' %}">{% trans 'Cancel' %}</a>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
@ -42,6 +42,7 @@ def test_add_regie(app, admin_user, payment_backend):
|
|||
app = login(app)
|
||||
resp = app.get('/manage/lingo/regies/', status=200)
|
||||
resp = resp.click('New')
|
||||
assert '/manage/lingo/regies/' in resp.text
|
||||
resp.forms[0]['label'] = 'Test'
|
||||
resp.forms[0]['slug'] = 'test'
|
||||
resp.forms[0]['description'] = 'description'
|
||||
|
@ -59,6 +60,7 @@ def test_edit_regie(app, admin_user, payment_backend):
|
|||
app = login(app)
|
||||
resp = app.get('/manage/lingo/regies/', status=200)
|
||||
resp = resp.click('Test')
|
||||
assert '/manage/lingo/regies/' in resp.text
|
||||
resp.forms[0]['description'] = 'other description'
|
||||
resp = resp.forms[0].submit()
|
||||
assert resp.location.endswith('/manage/lingo/regies/')
|
||||
|
|
Loading…
Reference in New Issue