Menambahkan expected_length dan extends
Menambahkan field `expected_length` dan menambahkan extends pada Use Case diagram. Sehingga requirement membuat Seksi, Pertanyaan dan Pilihan menjadi lebih eksplisit.
This commit is contained in:
48
tests/features/MengisiKuesioner.feature
Normal file
48
tests/features/MengisiKuesioner.feature
Normal file
@@ -0,0 +1,48 @@
|
||||
Feature: Filling Out Questionnaire
|
||||
As a respondent of the questionnaire
|
||||
I can fill out the questionnaire
|
||||
So I can completed the questionnaire
|
||||
|
||||
Scenario: Filling out questionnaire before filling profile form
|
||||
Given I am on questionnaire page
|
||||
And I am not filling profile form yet
|
||||
When I try to fill the questionnaire
|
||||
Then I should see warning that show I am not filling profile yet
|
||||
And I should redirected to profile page
|
||||
|
||||
Scenario: Filling profile form
|
||||
Given I am on profile form
|
||||
And I fill out all the required fields
|
||||
When I submit the form
|
||||
Then I should see message that I successfully fill the profile form
|
||||
And I should redirected to questionnaire detail page
|
||||
|
||||
Scenario: Revising answer
|
||||
Given I answered certain question within questionnaire
|
||||
And I haven't submit my questionnaire yet
|
||||
When I change the answer for that question
|
||||
Then My answer should changed
|
||||
|
||||
Scenario: Move to previous question
|
||||
Given I am not on first question
|
||||
When I move to previous question
|
||||
Then I should see previous question with my answer
|
||||
|
||||
Scenario: Error when given answer is shorter than expected
|
||||
Given The question expect the answers to be certain length
|
||||
When I give answers shorter that it expect
|
||||
Then I should see error warning and my answer will not be saved
|
||||
|
||||
Scenario: Submitting questionnaire
|
||||
Given I am finished filling out the questionnaire
|
||||
When I submit the questionnaire
|
||||
Then The questionnaire should be saved on the server
|
||||
And I should redirected to summary of questionnaire answers
|
||||
And I should receive summary of my answers with respond id via my email
|
||||
And later I can view my summary on a page using respond id
|
||||
|
||||
Scenario: Submitting unfinished questionnaire
|
||||
Given I filled out some of the questions
|
||||
When I submit the questionnaire
|
||||
Then I should receive warning says that I am not finished the questionnaire
|
||||
And the questionnaire can't be submitted
|
||||
Reference in New Issue
Block a user