-
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
1 parent
f953cb9
commit 8aa3b2f
Showing
1 changed file
with
29 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
Feature: Agent Event Create | ||
Background: | ||
Given an administrator user is logged in | ||
And an Agent has been created | ||
And the Agent is opened in edit mode | ||
And an Agent has been created | ||
And the Agent is opened in edit mode | ||
Scenario: Agent Event create page | ||
When the user clicks on 'Add Event' | ||
And the user clicks on 'Add Event' in the dropdown menu | ||
Then the New Event page is displayed with the Agent linked | ||
When the user clicks on 'Add Event' | ||
And the user clicks on 'Add Event' in the dropdown menu | ||
Then the New Event page is displayed with the Agent linked | ||
Scenario: Agent Event is created | ||
Given the New Event page is open for an Agent | ||
When the user selects 'Single' from 'Type' in the 'Event Date/Time' form | ||
And the user fills in 'Begin' with '2020-01-01' in the 'Event Date/Time' form | ||
And the user links an Agent | ||
And the user clicks on 'Save' | ||
Then the 'Event' created message is displayed | ||
When the user selects 'Single' from 'Type' in the 'Event Date/Time' form | ||
And the user fills in 'Begin' with '2020-01-01' in the 'Event Date/Time' form | ||
And the user links an Agent | ||
And the user clicks on 'Save' | ||
Then the 'Event' created message is displayed | ||
Scenario: Agent Event is not created due to missing required fields | ||
Given the New Event page is open for an Agent | ||
When the user selects 'Single' from 'Type' in the 'Event Date/Time' form | ||
And the user clicks on 'Save' | ||
Then the following error messages are displayed | ||
| Expression - is required unless a begin or end date is given | | ||
| Begin - is required unless an expression or an end date is given | | ||
| Agents - Property is required but was missing | | ||
| Role - Property is required but was missing | | ||
When the user selects 'Single' from 'Type' in the 'Event Date/Time' form | ||
And the user clicks on 'Save' | ||
Then the following error messages are displayed | ||
| Expression - is required unless a begin or end date is given | | ||
| Begin - is required unless an expression or an end date is given | | ||
| Agents - Property is required but was missing | | ||
| Role - Property is required but was missing | | ||
Scenario: Agent Event is not created due to missing required fields, with Event Date/Time Expression filled in | ||
Given the New Event page is open for an Agent | ||
When the user selects 'Single' from 'Type' in the 'Event Date/Time' form | ||
And the user fills in 'Expression' with 'Date Expression' in the 'Event Date/Time' form | ||
And the user clicks on 'Save' | ||
Then the following error messages are displayed | ||
| Agents - Property is required but was missing | | ||
| Role - Property is required but was missing | | ||
When the user selects 'Single' from 'Type' in the 'Event Date/Time' form | ||
And the user fills in 'Expression' with 'Date Expression' in the 'Event Date/Time' form | ||
And the user clicks on 'Save' | ||
Then the following error messages are displayed | ||
| Agents - Property is required but was missing | | ||
| Role - Property is required but was missing | | ||
Scenario: Agent Event is not created due to invalid date | ||
Given the New Event page is open for an Agent | ||
When the user selects 'Single' from 'Type' in the 'Event Date/Time' form | ||
And the user fills in 'Begin' with '2020-22-22' in the 'Event Date/Time' form | ||
And the user links an Agent | ||
And the user clicks on 'Save' | ||
Then only the following error message is displayed | ||
| Begin - Not a valid date | | ||
When the user selects 'Single' from 'Type' in the 'Event Date/Time' form | ||
And the user fills in 'Begin' with '2020-22-22' in the 'Event Date/Time' form | ||
And the user links an Agent | ||
And the user clicks on 'Save' | ||
Then only the following error message is displayed | ||
| Begin - Not a valid date | |