-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9898 from alphagov/content-modelling/876-create-p…
…ension-block content modelling/876 create pension block
- Loading branch information
Showing
6 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
22 changes: 22 additions & 0 deletions
22
lib/engines/content_block_manager/features/create_pension_object.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Feature: Create a content object | ||
|
||
Background: | ||
Given I am a GDS admin | ||
And the organisation "Ministry of Example" exists | ||
And a schema "pension" exists with the following fields: | ||
| field | type | format | required | | ||
| description | string | string | true | | ||
|
||
Scenario: GDS editor creates a Pension | ||
When I visit the Content Block Manager home page | ||
And I click to create an object | ||
Then I should see all the schemas listed | ||
When I click on the "pension" schema | ||
Then I should see a form for the schema | ||
When I complete the form with the following fields: | ||
| title | description | organisation | instructions_to_publishers | | ||
| my basic pension | this is basic | Ministry of Example | this is important | | ||
Then I am asked to review my answers for a "pension" | ||
And I review and confirm my answers are correct | ||
Then the edition should have been created successfully | ||
And I should be taken to the confirmation page for a new "pension" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters