Extracted text from book & chapter views

This commit is contained in:
Dan Brown
2016-11-17 13:33:07 +00:00
parent 694a9459c1
commit 57dc53ceff
26 changed files with 191 additions and 98 deletions

View File

@ -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');
}
}

View File

@ -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]);
}

View File

@ -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')

View File

@ -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')