From d23b9bbe4c26d58f8b3b541f473a44c279ae3914 Mon Sep 17 00:00:00 2001 From: dinadi Date: Fri, 21 Feb 2025 16:51:54 +0200 Subject: [PATCH] Container Profile create --- .../container_profile_create.feature | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 staff_features/container_profiles/container_profile_create.feature diff --git a/staff_features/container_profiles/container_profile_create.feature b/staff_features/container_profiles/container_profile_create.feature new file mode 100644 index 0000000..b450776 --- /dev/null +++ b/staff_features/container_profiles/container_profile_create.feature @@ -0,0 +1,43 @@ +Feature: Container Profile Create + Background: + Given an administrator user is logged in + Scenario: Open new container profile page from Create in the main toolbar + When the user clicks on 'Create' in the main toolbar + And the user clicks on 'Container Profile' in the dropdown menu + Then the user is on the New Container Profile page + Scenario: Open new container profile page from Manage Container Profile + When the user clicks on 'System' + And the user clicks on 'Manage Container Profiles' in the dropdown menu + And the user clicks on 'Create Container Profile' + Then the user is on the New Container Profile page + Scenario: Open new container profile page from Browse in the main toolbar + When the user clicks on 'Browse' in the main toolbar + And the user clicks on 'Container Profile' in the dropdown menu + And the user clicks on 'Create Container Profile' + Then the user is on the New Container Profile page + Scenario: Container Profile is created + Given the user is on the New Container Profile page + When the user fills in 'Name' with 'Test Container' + And the user fills in 'Depth' with '90' + And the user fills in 'Height' with '90' + And the user fills in 'Width' with '90' + And the user clicks on 'Save' + Then the 'Container Profile' created message is displayed + And the Container Profile is created + Scenario: Container Proofile is not created because required fields are missing + Given the user is on the New Container Profile page + When the user clicks on 'Save' + Then the following error messages are displayed + | Name - Property is required but was missing | + | Height - Property is required but was missing | + | Width - Property is required but was missing | + | Depth - Property is required but was missing | + Scenario: Container Profile is not created because Depth is alphanumeric + Given the user is on the New Container Profile page + When the user fills in 'Name' with 'Test Container' + And the user fills in 'Depth' with 'abc' + And the user fills in 'Height' with '90' + And the user fills in 'Width' with '90' + And the user clicks on 'Save' + Then the following error message is displayed + | Depth - Must be a number with no more than 2 decimal places | \ No newline at end of file