Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksmith-welder committed Feb 6, 2025
1 parent f953cb9 commit 8aa3b2f
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions staff_features/agents/agent_event_create.feature
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 |

0 comments on commit 8aa3b2f

Please sign in to comment.