1
0
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:
Dan Brown
2016-12-04 14:08:04 +00:00
parent 96075dee7b
commit 0775cd09a1
40 changed files with 413 additions and 243 deletions

View File

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

View File

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

View File

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

View File

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