Skip to content

Commit

Permalink
chore: update search e2e to use only test files, combine test cases (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanvn authored Nov 22, 2024
1 parent 141c654 commit 907d6d1
Showing 1 changed file with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 907d6d1

Please sign in to comment.