From df664bdc9dcf2110cb73ad439a713b88b48674e0 Mon Sep 17 00:00:00 2001 From: Daniel Meltzer Date: Thu, 21 Jul 2016 00:36:43 -0400 Subject: [PATCH] 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) --- tests/acceptance/CategoriesCept.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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');