A free open source IT asset/license management system
Fixed tests
snipede17da099f1a
diff --git a/tests/acceptance/CategoriesCept.php b/tests/acceptance/CategoriesCept.phpindex 67aaa18f0c..3fd7ad9a03 100644--- a/tests/acceptance/CategoriesCept.php+++ b/tests/acceptance/CategoriesCept.php@@ -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="');diff --git a/tests/acceptance/UsersCept.php b/tests/acceptance/UsersCept.phpindex 64c6013dfc..5c5ae71ecc 100644--- a/tests/acceptance/UsersCept.php+++ b/tests/acceptance/UsersCept.php@@ -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 */