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

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