[CORE][Form][TESTS] Fix FormTest::handle

This commit is contained in:
2022-03-13 18:53:53 +00:00
parent 63ef9292f3
commit e1cceac150
3 changed files with 14 additions and 17 deletions

View File

@@ -66,7 +66,7 @@ class SecurityTest extends GNUsocialTestCase
{
self::testLogin('taken_user', 'wrong password');
$this->assertResponseIsSuccessful();
$this->assertSelectorTextContains('.alert', 'Invalid login credentials');
$this->assertSelectorTextContains('.alert', 'The presented password is invalid.');
$this->assertRouteSame('security_login');
}
@@ -100,11 +100,8 @@ class SecurityTest extends GNUsocialTestCase
[$client,] = self::testRegister('new_nickname', 'new_email@provider.any', 'foobar');
$this->assertResponseStatusCodeSame(302);
$crawler = $client->followRedirect();
$this->assertRouteSame('root');
$client->followRedirect();
$this->assertResponseIsSuccessful();
$this->assertRouteSame('security_login');
$this->assertSelectorNotExists('.alert');
$this->assertSelectorTextContains('.profile-info-url-nickname', 'new_nickname');
}
public function testRegisterDifferentPassword()