mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fixed tests
This commit is contained in:
parent
886a31190c
commit
de17da099f
|
@ -5,8 +5,8 @@ $I->am('logged in user');
|
|||
$I->wantTo('ensure that the categories listing page loads without errors');
|
||||
$I->lookForwardTo('seeing it load without errors');
|
||||
$I->amOnPage('/admin/settings/categories');
|
||||
$I->waitForElement('.table', 5); // secs
|
||||
$I->seeNumberOfElements('tr', [1,30]);
|
||||
$I->waitForElement('.table', 10); // secs
|
||||
$I->seeNumberOfElements('tr', [1,100]);
|
||||
$I->seeInTitle('Categories');
|
||||
$I->see('Categories');
|
||||
$I->seeInPageSource('admin/settings/categories/create');
|
||||
|
@ -22,7 +22,7 @@ $I->dontSee('Create Category', '.page-header');
|
|||
$I->see('Create Category', 'h1.pull-left');
|
||||
$I->dontSee('<span class="');
|
||||
|
||||
$I->fillField('name', 'testcategory');
|
||||
$I->fillField('name', \App\Helpers\Helper::generateRandomString(15));
|
||||
$I->selectOption('form select[name=category_type]', 'Asset');
|
||||
$I->click('Save');
|
||||
$I->dontSee('<span class="');
|
||||
|
|
|
@ -6,14 +6,13 @@ $I->wantTo('ensure that the users listing page loads without errors');
|
|||
$I->lookForwardTo('seeing it load without errors');
|
||||
$I->amOnPage('/admin/users');
|
||||
//$I->waitForJS("return $.active == 0;", 60);
|
||||
//$I->waitForElement('.table', 5); // secs
|
||||
$I->waitForElement('.table', 5); // secs
|
||||
//$I->seeNumberOfElements('tr', [1,10]);
|
||||
$I->seeInTitle('Users');
|
||||
$I->see('Users');
|
||||
$I->seeInPageSource('admin/users/create');
|
||||
$I->dontSee('Users', '.page-header');
|
||||
$I->see('Users', 'h1.pull-left');
|
||||
$I->seeLink('Create New','/admin/users/create'); // matches <a href="/logout">Logout</a>
|
||||
|
||||
|
||||
/* Create form */
|
||||
|
|
Loading…
Reference in a new issue