mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Extracted text for remaining views
This commit is contained in:
@@ -24,7 +24,7 @@ class AuthTest extends TestCase
|
||||
$settings->put('app-public', 'true');
|
||||
$this->visit('/')
|
||||
->seePageIs('/')
|
||||
->see('Sign In');
|
||||
->see('Log In');
|
||||
}
|
||||
|
||||
public function test_registration_showing()
|
||||
@@ -132,7 +132,7 @@ class AuthTest extends TestCase
|
||||
|
||||
$this->asAdmin()
|
||||
->visit('/settings/users')
|
||||
->click('Add new user')
|
||||
->click('Add New User')
|
||||
->type($user->name, '#name')
|
||||
->type($user->email, '#email')
|
||||
->check('roles[admin]')
|
||||
|
@@ -15,8 +15,8 @@ class EntitySearchTest extends TestCase
|
||||
->type($page->name, 'term')
|
||||
->press('header-search-box-button')
|
||||
->see('Search Results')
|
||||
->see($page->name)
|
||||
->click($page->name)
|
||||
->seeInElement('.entity-list', $page->name)
|
||||
->clickInElement('.entity-list', $page->name)
|
||||
->seePageIs($page->getUrl());
|
||||
}
|
||||
|
||||
|
@@ -48,7 +48,7 @@ class SortTest extends TestCase
|
||||
$newBook = \BookStack\Book::where('id', '!=', $currentBook->id)->first();
|
||||
|
||||
$this->asAdmin()->visit($chapter->getUrl() . '/move')
|
||||
->see('Move Chapter')->see($chapter->name)
|
||||
->see('Move Chapter')
|
||||
->type('book:' . $newBook->id, 'entity_selection')->press('Move Chapter');
|
||||
|
||||
$chapter = \BookStack\Chapter::find($chapter->id);
|
||||
|
@@ -81,7 +81,7 @@ class RolesTest extends TestCase
|
||||
$this->asAdmin()->visit('/settings')
|
||||
->click('Roles')
|
||||
->seePageIs('/settings/roles')
|
||||
->click('Add new role')
|
||||
->click('Create New Role')
|
||||
->type('Test Role', 'display_name')
|
||||
->type('A little test description', 'description')
|
||||
->press('Save Role')
|
||||
|
Reference in New Issue
Block a user