-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 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
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
22 changes: 22 additions & 0 deletions
22
staff_features/subjects/subject_add_external_document.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: Subject External Documemt | ||
Background: | ||
Given an administrator user is logged in | ||
And a Subject has been created | ||
And the Subject is opened in edit mode | ||
Scenario: Add External Document | ||
When the user clicks on 'External Documents' | ||
And the user clicks on 'Add External Document' | ||
And the user fills in 'Title' with 'Test title' | ||
And the user fills in 'Location' with 'Test location' | ||
And the user clicks on 'Save Subject' | ||
Then the 'Subject' saved message is displayed | ||
And a new External Document is added to the Subject with the following values | ||
| Title | Test title | | ||
| Location | Test location | | ||
Scenario: External Document is not added because required fields are missing | ||
When the user clicks on 'External Documents' | ||
And the user clicks on 'Add External Document' | ||
And the user clicks on 'Save Subject' | ||
Then the following error messages are displayed | ||
| Title - Property is required but was missing | | ||
| Location - Property is required but was missing | |