File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,22 +8,23 @@ Feature: CRUD actions for question
88 And I sign in as "test/password"
99 And I am on the questions index
1010 And show me the page
11- And I follow "Show "
11+ And I follow "Title "
1212
1313 Scenario : Create an answer
1414 When I fill in the following:
1515 | Answer | My Answer |
1616 And I press "Post Answer"
1717 Then I should see "Answer Posted!"
18+ And I should see "test says" within ".answer"
1819 And I should see "My Answer" within ".answers"
19- And I should see "Answered by test" within ".answer"
20+
2021
2122 Scenario : Select an answer
2223 Given I have created a question with title "My Title" and description "My Description"
2324 And that someone has provided "Some solution" as an answer for my question
2425 And I am on the questions index
25- And I follow "Show" for my question
26- And I press "This answer is correct "
26+ And I follow "My Title"
27+ And I press "This answers my question! "
2728 Then I should see "Okay! We've selected that answer"
2829 And I should see "Some solution" within ".selected-answer"
2930
Original file line number Diff line number Diff line change @@ -14,14 +14,15 @@ Feature: CRUD actions for question
1414 | Description | My Description |
1515 And I press "Ask Everyone"
1616 Then I should see "Question Asked!"
17- When I follow "Show" within "table "
17+ When I follow "My Question "
1818 Then I should see "My Question" within ".title"
19- And I should see "Created by test"
19+ And I should see "Asked by test"
2020
2121 Scenario : Edit an existing question
2222 Given I have created a question with title "My Title" and description "My Description"
2323 And I am on the questions index
24- When I follow "Edit" within "table"
24+ When I follow "My Title"
25+ And I follow "Edit" within "#sidebar"
2526 And I fill in the following:
2627 | Title | My Edited Question |
2728 | Description | My Edited Description |
You can’t perform that action at this time.
0 commit comments