[TESTS] Fix SecurityTest breakage following UI changes
This commit is contained in:
parent
e8ae0b74e0
commit
bfd0acacd1
@ -49,7 +49,7 @@ class SecurityTest extends GNUsocialTestCase
|
|||||||
$this->assertResponseIsSuccessful();
|
$this->assertResponseIsSuccessful();
|
||||||
$this->assertSelectorNotExists('.alert');
|
$this->assertSelectorNotExists('.alert');
|
||||||
$this->assertRouteSame('main_all');
|
$this->assertRouteSame('main_all');
|
||||||
$this->assertSelectorTextContains('#user-nick', $nickname);
|
$this->assertSelectorTextContains('#user-info > h1', $nickname);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testLoginAttemptAlreadyLoggedIn()
|
public function testLoginAttemptAlreadyLoggedIn()
|
||||||
@ -75,7 +75,7 @@ class SecurityTest extends GNUsocialTestCase
|
|||||||
$this->assertResponseIsSuccessful();
|
$this->assertResponseIsSuccessful();
|
||||||
$this->assertSelectorNotExists('.alert');
|
$this->assertSelectorNotExists('.alert');
|
||||||
$this->assertRouteSame('main_all');
|
$this->assertRouteSame('main_all');
|
||||||
$this->assertSelectorTextContains('#user-nick', 'taken_user');
|
$this->assertSelectorTextContains('#user-info > h1', 'taken_user');
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------- Register --------------
|
// --------- Register --------------
|
||||||
@ -102,7 +102,7 @@ class SecurityTest extends GNUsocialTestCase
|
|||||||
$this->assertResponseIsSuccessful();
|
$this->assertResponseIsSuccessful();
|
||||||
$this->assertSelectorNotExists('.alert');
|
$this->assertSelectorNotExists('.alert');
|
||||||
$this->assertRouteSame('main_all');
|
$this->assertRouteSame('main_all');
|
||||||
$this->assertSelectorTextContains('#user-nick', 'new_nickname');
|
$this->assertSelectorTextContains('#user-info > h1', 'new_nickname');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testRegisterDifferentPassword()
|
public function testRegisterDifferentPassword()
|
||||||
@ -125,7 +125,7 @@ class SecurityTest extends GNUsocialTestCase
|
|||||||
{
|
{
|
||||||
self::testRegister('new_nickname', 'email@provider', $password);
|
self::testRegister('new_nickname', 'email@provider', $password);
|
||||||
$this->assertResponseIsSuccessful();
|
$this->assertResponseIsSuccessful();
|
||||||
$this->assertSelectorTextContains('ul > li', $error);
|
$this->assertSelectorTextContains('.help-block > ul > li', $error);
|
||||||
$this->assertRouteSame('register');
|
$this->assertRouteSame('register');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,7 +148,7 @@ class SecurityTest extends GNUsocialTestCase
|
|||||||
{
|
{
|
||||||
self::testRegister('new_nickname', '', 'foobar');
|
self::testRegister('new_nickname', '', 'foobar');
|
||||||
$this->assertResponseIsSuccessful();
|
$this->assertResponseIsSuccessful();
|
||||||
$this->assertSelectorTextContains('ul > li', 'Please enter an email');
|
$this->assertSelectorTextContains('.help-block > ul > li', 'Please enter an email');
|
||||||
$this->assertRouteSame('register');
|
$this->assertRouteSame('register');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -156,7 +156,7 @@ class SecurityTest extends GNUsocialTestCase
|
|||||||
{
|
{
|
||||||
self::testRegister($nickname, 'email@provider', 'foobar');
|
self::testRegister($nickname, 'email@provider', 'foobar');
|
||||||
$this->assertResponseIsSuccessful();
|
$this->assertResponseIsSuccessful();
|
||||||
$this->assertSelectorTextContains('ul > li', $error);
|
$this->assertSelectorTextContains('.help-block > ul > li', $error);
|
||||||
$this->assertRouteSame('register');
|
$this->assertRouteSame('register');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user