mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-28 11:05:43 +08:00
Extracted text from book & chapter views
This commit is contained in:
@ -245,7 +245,7 @@ class AuthTest extends TestCase
|
||||
{
|
||||
$this->setSettings(['registration-enabled' => 'true']);
|
||||
$this->visit('/password/email')
|
||||
->seeLink('Sign in')
|
||||
->seeLink('Log in')
|
||||
->seeLink('Sign up');
|
||||
}
|
||||
|
||||
@ -260,6 +260,6 @@ class AuthTest extends TestCase
|
||||
return $this->visit('/login')
|
||||
->type($email, '#email')
|
||||
->type($password, '#password')
|
||||
->press('Sign In');
|
||||
->press('Log In');
|
||||
}
|
||||
}
|
||||
|
@ -36,11 +36,11 @@ class LdapTest extends \TestCase
|
||||
->see('Username')
|
||||
->type($this->mockUser->name, '#username')
|
||||
->type($this->mockUser->password, '#password')
|
||||
->press('Sign In')
|
||||
->press('Log In')
|
||||
->seePageIs('/login')->see('Please enter an email to use for this account.');
|
||||
|
||||
$this->type($this->mockUser->email, '#email')
|
||||
->press('Sign In')
|
||||
->press('Log In')
|
||||
->seePageIs('/')
|
||||
->see($this->mockUser->name)
|
||||
->seeInDatabase('users', ['email' => $this->mockUser->email, 'email_confirmed' => false, 'external_auth_id' => $this->mockUser->name]);
|
||||
@ -64,7 +64,7 @@ class LdapTest extends \TestCase
|
||||
->see('Username')
|
||||
->type($this->mockUser->name, '#username')
|
||||
->type($this->mockUser->password, '#password')
|
||||
->press('Sign In')
|
||||
->press('Log In')
|
||||
->seePageIs('/')
|
||||
->see($this->mockUser->name)
|
||||
->seeInDatabase('users', ['email' => $this->mockUser->email, 'email_confirmed' => false, 'external_auth_id' => $ldapDn]);
|
||||
@ -87,7 +87,7 @@ class LdapTest extends \TestCase
|
||||
->see('Username')
|
||||
->type($this->mockUser->name, '#username')
|
||||
->type($this->mockUser->password, '#password')
|
||||
->press('Sign In')
|
||||
->press('Log In')
|
||||
->seePageIs('/login')->see('These credentials do not match our records.')
|
||||
->dontSeeInDatabase('users', ['external_auth_id' => $this->mockUser->name]);
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ class EntityTest extends TestCase
|
||||
$this->asAdmin()
|
||||
->visit('/books')
|
||||
// Choose to create a book
|
||||
->click('Add new book')
|
||||
->click('Create New Book')
|
||||
->seePageIs('/books/create')
|
||||
// Fill out form & save
|
||||
->type($book->name, '#name')
|
||||
|
@ -211,7 +211,7 @@ class RolesTest extends TestCase
|
||||
$this->checkAccessPermission('book-create-all', [
|
||||
'/books/create'
|
||||
], [
|
||||
'/books' => 'Add new book'
|
||||
'/books' => 'Create New Book'
|
||||
]);
|
||||
|
||||
$this->visit('/books/create')
|
||||
|
Reference in New Issue
Block a user