From 907d6d1fd6f13abae526758dbdc1f06046a85f44 Mon Sep 17 00:00:00 2001 From: Jordan Van Ness Date: Fri, 22 Nov 2024 08:50:36 -0800 Subject: [PATCH] chore: update search e2e to use only test files, combine test cases (#6182) --- .../storage-browser/search-locations.feature | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/packages/e2e/features/ui/components/storage/storage-browser/search-locations.feature b/packages/e2e/features/ui/components/storage/storage-browser/search-locations.feature index 00b1de0fa8..0858699da8 100644 --- a/packages/e2e/features/ui/components/storage/storage-browser/search-locations.feature +++ b/packages/e2e/features/ui/components/storage/storage-browser/search-locations.feature @@ -4,30 +4,21 @@ Feature: Search with Storage Browser Given I'm running the example "ui/components/storage/storage-browser/default-auth" @react - Scenario: Basic search returns correct results + Scenario: Search folders and subfolders with matching results When I type my "email" with status "CONFIRMED" Then I type my password Then I click the "Sign in" button When I click the first button containing "public" - Then I see the button containing "test+name" + Then I see the button containing "DoNotDeleteThisFolder_CanDeleteAllChildren" When I see input with placeholder "Search current folder" and type "DO_NOT" Then I click the "Search" button Then I see the button containing "DO_NOT_DELETE" - Then I do not see the button containing "test+name" - # Verify clear returns to initial state - When I click the button containing "Clear search" - Then I see the button containing "test+name" - - @react - Scenario: Search within sub-directories - When I type my "email" with status "CONFIRMED" - Then I type my password - Then I click the "Sign in" button - When I click the first button containing "public" - When I see input with placeholder "Search current folder" and type "DELETE" - Then I click the "Search" button Then I do not see the button containing "DO_NOT_DELETE/DONT_DELETE_SUB" + Then I do not see the button containing "DoNotDeleteThisFolder_CanDeleteAllChildren" + # Verify clear returns to initial state When I click the button containing "Clear search" + Then I see the button containing "DoNotDeleteThisFolder_CanDeleteAllChildren" + # Verify subfolder results When I click the "Include Subfolders" checkbox When I see input with placeholder "Search current folder" and type "DELETE" Then I click the "Search" button