Skip to content

Instantly share code, notes, and snippets.

@kehh
Created November 9, 2018 07:21
Show Gist options
  • Save kehh/0d3f93336ceb85d0409dc2605beed37a to your computer and use it in GitHub Desktop.
Save kehh/0d3f93336ceb85d0409dc2605beed37a to your computer and use it in GitHub Desktop.
Feature: Factsheet page type
As an administrative user I should be able to create factsheet pages.
@api
Scenario: Ability to create factsheet pages.
Given I am logged in as a user with the "Site editor" role
And I am on "/node/add/species-factsheet"
And I enter "Test common name" for "Title (Common Name)"
And I check the box "Arid"
And I enter "Test body" for "Body"
And I enter "Aus bus" for "Scientific Name"
And I enter "Test Wood description." for "Wood description"
And I enter "Test Wood density." for "Wood density"
And I enter "Test Drying and shrinkage." for "Drying and shrinkage"
And I enter "Test Workability." for "Workability"
And I enter "Test Durability." for "Durability"
And I enter "Test Strength group and properties." for "Strength group and properties"
And I enter "Test Uses." for "Uses"
And I enter "Test Availability." for "Availability"
And I press "Save"
Then I should not see the error message containing "the title field is required"
Then I should see the following <success messages>
| success messages |
| Species Factsheet Test common name has been created. |
And I should see the text "Test common name"
And I should not see the text "Arid"
And I should see the text "Test body"
And I should see the text "Aus bus"
And I should see the text "Test Wood description."
And I should see the text "Test Wood density."
And I should see the text "Test Drying and shrinkage."
And I should see the text "Test Workability."
And I should see the text "Test Durability."
And I should see the text "Test Strength group and properties."
And I should see the text "Test Uses."
And I should see the text "Test Availability."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment