tests: adjust not to find link by label (#29228)

This commit is contained in:
Frédéric Péters 2019-01-02 17:26:04 +01:00
parent 7861f4a4f3
commit 5a20b28487
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ def test_registration1(app, fc_settings, caplog, hooks):
assert User.objects.count() == 0
assert path(response['Location']) == '/login/'
response = response.follow()
response = response.click('Create your account with FranceConnect')
response = response.click(href='/accounts/fc/register')
location = response['Location']
location.startswith('http://testserver/accounts/activate/')
response = response.follow()