From 9f1dacff0027c606e8d3dff24c2c7aa4b230b088 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 29 Mar 2023 11:09:01 -0400 Subject: [PATCH] Add scenarios about namespaces being created and deleted Signed-off-by: Sebastian Malton --- scenarios/namespace-selector.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scenarios/namespace-selector.md b/scenarios/namespace-selector.md index a677902c58..e30a708ce3 100644 --- a/scenarios/namespace-selector.md +++ b/scenarios/namespace-selector.md @@ -97,6 +97,18 @@ - But the namespace is marked as selected - When I click the select control the namespace selector closes +### Scenario: A new namespace is created while the selector is open +- Given that the namespace selector is open +- And a new namespace is created +- Then new namespace is now visible as an option +- And the new namespace is not shown as selected +- And the namespace is sorted alphabetically into the "never selected" section + +### Scenario: A non-selected namespace is deleted while the selector is open +- Given that the namespace selector is open +- And a namespace that is not selected is deleted +- Then the namespace is no longer visible as an option + ### Scenario: Closing dropdown after selecting multiple namespaces onKeyUp CTRL/CMD and mouse - Given I’ve opened namespace selector - And CTRL/CMD is pressed