blob: 0e1c02b412634e7176eb5d8f9dd3f0bea5d3aea5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
Feature: Viewing question listings
As recruit
I want to see listings of questions
To answer them
Scenario: View listing of all questions I should answer
Given I am logged in as recruit with some answered and unanswered questions
When I am on the homepage
And I follow "All questions you should answer(including answered)."
Then I should see following:
|q1|q3|q4|
And I should not see "q2"
Scenario: View listing of all questions I answered
Given I am logged in as recruit with some answered and unanswered questions
When I am on my answered questions page
Then I should see "q3"
And I should not see following:
|q1|q2|q4|
Scenario: View listing of all questions I didn't answer yet
Given I am logged in as recruit with some answered and unanswered questions
When I am on my unanswered questions page
Then I should see following:
|q1|q4|
And I should not see following:
|q2|q3|
Scenario: View questions by category
Given following questions:
|q1|cat1|
|q2|cat1|
|q3|cat2|
When I am on the home page
And I follow "Question Categories"
And I follow "cat1"
Then I should see following:
|q1|q2|
And I should not see "q3"
When I follow "Question Categories"
And I follow "cat2"
Then I should see "q3"
And I should not see following:
|q1|q2|
|