Skip to content

Commit 907d6d1

Browse files
authored
chore: update search e2e to use only test files, combine test cases (#6182)
1 parent 141c654 commit 907d6d1

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

packages/e2e/features/ui/components/storage/storage-browser/search-locations.feature

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,21 @@ Feature: Search with Storage Browser
44
Given I'm running the example "ui/components/storage/storage-browser/default-auth"
55

66
@react
7-
Scenario: Basic search returns correct results
7+
Scenario: Search folders and subfolders with matching results
88
When I type my "email" with status "CONFIRMED"
99
Then I type my password
1010
Then I click the "Sign in" button
1111
When I click the first button containing "public"
12-
Then I see the button containing "test+name"
12+
Then I see the button containing "DoNotDeleteThisFolder_CanDeleteAllChildren"
1313
When I see input with placeholder "Search current folder" and type "DO_NOT"
1414
Then I click the "Search" button
1515
Then I see the button containing "DO_NOT_DELETE"
16-
Then I do not see the button containing "test+name"
17-
# Verify clear returns to initial state
18-
When I click the button containing "Clear search"
19-
Then I see the button containing "test+name"
20-
21-
@react
22-
Scenario: Search within sub-directories
23-
When I type my "email" with status "CONFIRMED"
24-
Then I type my password
25-
Then I click the "Sign in" button
26-
When I click the first button containing "public"
27-
When I see input with placeholder "Search current folder" and type "DELETE"
28-
Then I click the "Search" button
2916
Then I do not see the button containing "DO_NOT_DELETE/DONT_DELETE_SUB"
17+
Then I do not see the button containing "DoNotDeleteThisFolder_CanDeleteAllChildren"
18+
# Verify clear returns to initial state
3019
When I click the button containing "Clear search"
20+
Then I see the button containing "DoNotDeleteThisFolder_CanDeleteAllChildren"
21+
# Verify subfolder results
3122
When I click the "Include Subfolders" checkbox
3223
When I see input with placeholder "Search current folder" and type "DELETE"
3324
Then I click the "Search" button

0 commit comments

Comments
 (0)