Skip to content

A free open source IT asset/license management system

Fix categories acceptance test as it stands. We need to choose a category type to pass validation, and we need to see the elemnt alert-danger, not the text, to make the test fail when it should. (#2289)

Daniel Meltzerdf664bdc9dcf
diff --git a/tests/acceptance/CategoriesCept.php b/tests/acceptance/CategoriesCept.php
index 67adfda6ff..67aaa18f0c 100644
--- a/tests/acceptance/CategoriesCept.php
+++ b/tests/acceptance/CategoriesCept.php
@@ -23,6 +23,7 @@ $I->see('Create Category', 'h1.pull-left');
$I->dontSee('<span class="');
$I->fillField('name', 'testcategory');
+$I->selectOption('form select[name=category_type]', 'Asset');
$I->click('Save');
$I->dontSee('<span class="');
-$I->dontSee('.alert-danger');
+$I->dontSeeElement('.alert-danger');