From: Tomas Sedovic <tsedovic(a)redhat.com>
---
src/features/role.feature | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/src/features/role.feature b/src/features/role.feature
index 1975f5a..a8bd064 100644
--- a/src/features/role.feature
+++ b/src/features/role.feature
@@ -37,3 +37,20 @@ Feature: Manage Roles
And I should be on the admin roles page
And I should not see "Captan"
And I should not see "Admiral"
+
+ Scenario: Search roles
+ Given a role "Admiral" exists
+ And I am on the admin roles page
+ And there are 2 roles
+ When I fill in "q" with "admi"
+ And I press "Search"
+ Then I should see "Admiral"
+ And I should not see "Captan"
+ When I fill in "q" with "Captan"
+ And I press "Search"
+ Then I should not see "Admiral"
+ And I should see "Captan"
+ When I fill in "q" with ""
+ And I press "Search"
+ Then I should see "Admiral"
+ And I should see "Captan"
--
1.7.3.4