From 8aa3b2f96d798171b76d4462262a34cb2eb12337 Mon Sep 17 00:00:00 2001 From: blacksmith-welder Date: Thu, 6 Feb 2025 13:22:12 +0200 Subject: [PATCH] Fix formatting --- .../agents/agent_event_create.feature | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/staff_features/agents/agent_event_create.feature b/staff_features/agents/agent_event_create.feature index 82a2220..c314b61 100644 --- a/staff_features/agents/agent_event_create.feature +++ b/staff_features/agents/agent_event_create.feature @@ -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 | \ No newline at end of file + 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 |