diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-07-15 15:02:40 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-07-21 20:49:50 +0200 |
commit | ab4702b1f88b55502353ee6c5644b5e2da58eca3 (patch) | |
tree | 1979fac1f88c0eac7aa28c5949bc1f058775523d /features | |
parent | Don't allow recruits to edit their project acceptances (diff) | |
download | recruiting-webapp-ab4702b1f88b55502353ee6c5644b5e2da58eca3.tar.gz recruiting-webapp-ab4702b1f88b55502353ee6c5644b5e2da58eca3.tar.bz2 recruiting-webapp-ab4702b1f88b55502353ee6c5644b5e2da58eca3.zip |
Feature covering proper view of questions by category
Makes sure there are no question counts.
Diffstat (limited to 'features')
-rw-r--r-- | features/clean_ui.feature | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/features/clean_ui.feature b/features/clean_ui.feature index e3f8112..c1b14dc 100644 --- a/features/clean_ui.feature +++ b/features/clean_ui.feature @@ -9,3 +9,31 @@ Feature: Clean UI And I follow "See your profile" And I follow "Edit User" Then I should not see "Project Acceptances" + + Scenario: Properly show questions by category + Given following questions: + |question 1|category 1| + |question 2|category 1| + |question 3|category 1| + |question 4|category 2| + |question 6|category 2| + |question 7|category 3| + |question 8|category 3| + |hidden|category 3| + And a question "hidden" in group "group" + When I am logged in as "recruit" + And I follow "Question Categories" + And I follow "category 1" + Then I should see following: + |question 1|question 2|question 3| + And I should not see following: + |question 4|question 6|question 7|question 8|hidden| + And I should not see /There are \d+/ + + When I follow "Question Categories" + And I follow "category 3" + Then I should see following: + |question 7|question 8| + And I should not see following: + |question 1|question 2|question 3|question 4|question 6|hidden| + And I should not see /There are \d+/ |