Adding MembuatKuesioner.feature
Menambahkan feature membuat kuesioner.
This commit is contained in:
parent
393be89524
commit
88a6b60731
5
.gitattributes
vendored
Normal file
5
.gitattributes
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
* text=auto
|
||||||
|
*.css linguist-vendored
|
||||||
|
*.scss linguist-vendored
|
||||||
|
*.js linguist-vendored
|
||||||
|
CHANGELOG.md export-ignore
|
14
.gitignore
vendored
14
.gitignore
vendored
@ -1,3 +1,13 @@
|
|||||||
|
/node_modules
|
||||||
|
/public/hot
|
||||||
|
/public/storage
|
||||||
|
/storage/*.key
|
||||||
|
/vendor
|
||||||
|
/.idea
|
||||||
|
/.vagrant
|
||||||
|
Homestead.json
|
||||||
|
Homestead.yaml
|
||||||
|
npm-debug.log
|
||||||
|
yarn-error.log
|
||||||
|
.env
|
||||||
tags
|
tags
|
||||||
.dot
|
|
||||||
.phpcd
|
|
||||||
|
53
tests/features/MembuatKuesioner.feature
Normal file
53
tests/features/MembuatKuesioner.feature
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
Feature: Create Questionnaire
|
||||||
|
As an admin on the application
|
||||||
|
I can create and publish a questionnaire
|
||||||
|
So the questionnaire will be available to application user
|
||||||
|
|
||||||
|
Scenario: Create Questionnaire
|
||||||
|
Given I have a profile on the system
|
||||||
|
And I am authorized to create a questionnaire
|
||||||
|
When I successfully create a questionnaire
|
||||||
|
Then I can see the questionnaire on questionnaire list page
|
||||||
|
|
||||||
|
Scenario: Create Section
|
||||||
|
Given I have a profile on the system
|
||||||
|
And I am on questionnaire detail page
|
||||||
|
And I am authorized to create a section
|
||||||
|
When I successfully create a section
|
||||||
|
Then I can see the section on questionnaire detail page
|
||||||
|
|
||||||
|
Scenario: Create Question
|
||||||
|
Given I have a profile on the system
|
||||||
|
And I am on section detail page
|
||||||
|
And I am authorized to create a question
|
||||||
|
When I successfully create a question
|
||||||
|
And I should provide question type, description and text
|
||||||
|
Then I can see the section on questionnaire detail page
|
||||||
|
|
||||||
|
Scenario: Publish the Questionnaire
|
||||||
|
Given I have a profile on the system
|
||||||
|
And I created a questionnaire
|
||||||
|
When I publish the questionnaire
|
||||||
|
Then I can see the questionnaire on the published questionnaire page
|
||||||
|
|
||||||
|
Scenario: Update Questionnaire
|
||||||
|
Given I created a questionnaire
|
||||||
|
And I am on edit questionnaire page
|
||||||
|
And the Questionnaire is not published
|
||||||
|
When I change the questionnaire details
|
||||||
|
Then I can see the changes on the questionnaire detail page
|
||||||
|
|
||||||
|
Scenario: Update Section
|
||||||
|
Given I created a section
|
||||||
|
And I am on edit section page
|
||||||
|
And the Questionnaire is not published
|
||||||
|
When I change the section details
|
||||||
|
Then I can see the changes on the section detail page
|
||||||
|
|
||||||
|
Scenario: Update Question
|
||||||
|
Given I created a question
|
||||||
|
And I am on edit question page
|
||||||
|
And the Questionnaire is not published
|
||||||
|
When I change the question details
|
||||||
|
Then I can see the changes on the question detail page
|
||||||
|
|
Loading…
Reference in New Issue
Block a user