From 6fe2ebf925b17e869e9c61caa5d3cb5b6903ebc1 Mon Sep 17 00:00:00 2001 From: dinadi Date: Tue, 28 Jan 2025 15:50:26 +0200 Subject: [PATCH] Agent edit --- staff_features/agents/agent_edit.feature | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 staff_features/agents/agent_edit.feature diff --git a/staff_features/agents/agent_edit.feature b/staff_features/agents/agent_edit.feature new file mode 100644 index 0000000..7d1557f --- /dev/null +++ b/staff_features/agents/agent_edit.feature @@ -0,0 +1,26 @@ +Feature: Agent Edit + Background: + Given an administrator user is logged in + And an Agent has been created + Scenario: Agent is opened in the edit mode from the browse menu + Given the Agent appears in the search results list + When the user clicks on 'Edit' + Then the Agent is opened in the edit mode + Scenario: Agent is opened in the edit mode from the view mode + Given the Agent is opened in the view mode + When the user clicks on 'Edit' + Then the Agent is opened in the edit mode + Scenario Outline: Agent is successfully updated + Given the Agent is opened in edit mode + When the user changes the '' field to '' + And the user clicks on 'Save' + Then the 'Agent' saved message is displayed + And the field '' has value '' + Examples: + | Field | NewValue | + | Authority ID | Test | + Scenario: Agent is not updated after changes are reverted + Given the Agent is opened in edit mode + When the user changes the 'Authority ID' field + And the user clicks on 'Revert Changes' + Then the Authority ID has the original value