tests: adapt to change in authentic form field identifiers

This commit is contained in:
Frédéric Péters 2020-10-09 15:52:24 +02:00
parent 3caeeb82ed
commit 6cf6d7fcf6
1 changed files with 2 additions and 2 deletions

View File

@ -532,8 +532,8 @@ def test_middleware(notify_agents, app_factory, tenant, settings):
resp = form.submit(name='login-password-submit').follow()
resp = resp.click('Your account')
resp = resp.click('Edit')
resp.form.set('edit-profile-first_name', 'John')
resp.form.set('edit-profile-last_name', 'Doe')
resp.form.set('first_name', 'John')
resp.form.set('last_name', 'Doe')
assert notify_agents.call_count == 0
resp = resp.form.submit().follow()
assert notify_agents.call_count == 1