|
| 1 | +Feature: Create folder with Storage Browser |
| 2 | + |
| 3 | + Background: |
| 4 | + Given I'm running the example "ui/components/storage/storage-browser/default-auth" |
| 5 | + |
| 6 | + @react |
| 7 | + Scenario: Create folder successfully creates a new empty folder |
| 8 | + When I type my "email" with status "CONFIRMED" |
| 9 | + Then I type my password |
| 10 | + Then I click the "Sign in" button |
| 11 | + When I click the first button containing "public" |
| 12 | + When I click the first button containing "DoNotDeleteThisFolder_CanDeleteAllChildren" |
| 13 | + Then I see the "Menu Toggle" button |
| 14 | + When I click the "Menu Toggle" button |
| 15 | + Then I see the "Create Folder" menuitem |
| 16 | + When I click the "Create Folder" menuitem |
| 17 | + Then I see "Folder name" |
| 18 | + Then I see the "Create Folder" button |
| 19 | + Then the "Create Folder" button is disabled |
| 20 | + When I type a new "Folder name" with random value |
| 21 | + Then I see the "Create Folder" button |
| 22 | + When I click the "Create Folder" button |
| 23 | + Then I see "Folder created" |
| 24 | + # verify folder creation |
| 25 | + When I click the "Exit" button |
| 26 | + Then I click the button containing random name |
| 27 | + Then I see "No files" |
| 28 | + # TODO: delete created folder |
| 29 | + |
| 30 | + @react |
| 31 | + Scenario: Create folder fails on overwrite of existing folder name |
| 32 | + When I type my "email" with status "CONFIRMED" |
| 33 | + Then I type my password |
| 34 | + Then I click the "Sign in" button |
| 35 | + When I click the first button containing "public" |
| 36 | + Then I see the "Menu Toggle" button |
| 37 | + When I click the "Menu Toggle" button |
| 38 | + Then I see the "Create Folder" menuitem |
| 39 | + When I click the "Create Folder" menuitem |
| 40 | + Then I see "Folder name" |
| 41 | + Then I see the "Create Folder" button |
| 42 | + Then the "Create Folder" button is disabled |
| 43 | + When I type a new "Folder name" with value "Blackberry" |
| 44 | + Then I see the "Create Folder" button |
| 45 | + When I click the "Create Folder" button |
| 46 | + Then I see "A folder already exists with the provided name" |
| 47 | + |
| 48 | + @react |
| 49 | + Scenario: Create folder input shows error message when folder name contains "/" |
| 50 | + When I type my "email" with status "CONFIRMED" |
| 51 | + Then I type my password |
| 52 | + Then I click the "Sign in" button |
| 53 | + When I click the first button containing "public" |
| 54 | + Then I see the "Menu Toggle" button |
| 55 | + When I click the "Menu Toggle" button |
| 56 | + Then I see the "Create Folder" menuitem |
| 57 | + When I click the "Create Folder" menuitem |
| 58 | + Then I see "Folder name" |
| 59 | + Then I see the "Create Folder" button |
| 60 | + Then the "Create Folder" button is disabled |
| 61 | + When I type a new "Folder name" with value "Blackberry/" |
| 62 | + When I lose focus on "Folder name" input |
| 63 | + Then I see 'Folder name cannot contain \"/\", nor end or start with \".\"' |
| 64 | + |
| 65 | + @react |
| 66 | + Scenario: upload, list, copy and delete a file using toggle menu |
| 67 | + When I type my "email" with status "CONFIRMED" |
| 68 | + Then I type my password |
| 69 | + Then I click the "Sign in" button |
| 70 | + When I click the first button containing "public" |
| 71 | + Then I see the "Menu Toggle" button |
| 72 | + When I click the "Menu Toggle" button |
| 73 | + # upload file |
| 74 | + Then I see the "Upload" menuitem |
| 75 | + When I click the "Upload" menuitem |
| 76 | + Then the "Upload" button is disabled |
| 77 | + Then I upload "1" files with random names |
| 78 | + Then I see "Not started" |
| 79 | + Then I click the label containing text "Overwrite existing files" |
| 80 | + When I click the "Upload" button |
| 81 | + Then I see "100%" |
| 82 | + Then I see "All files uploaded" |
| 83 | + When I click the "Exit" button |
| 84 | + # list uploaded file |
| 85 | + Then I see "1" files with random names |
| 86 | + # copy file |
| 87 | + Then I click checkbox for with "1" files with random names |
| 88 | + When I click the "Menu Toggle" button |
| 89 | + When I click the "Copy" menuitem |
| 90 | + Then I see "Copy destination" |
| 91 | + Then I click the "DoNotDeleteThisFolder_CanDeleteAllChildren/" button |
| 92 | + Then I click the "Copy" button |
| 93 | + Then I see "All files copied" |
| 94 | + When I click the "Exit" button |
| 95 | + # delete file |
| 96 | + Then I click checkbox for with "1" files with random names |
| 97 | + When I click the "Menu Toggle" button |
| 98 | + Then I click the "Delete" menuitem |
| 99 | + Then I click the "Delete" button |
| 100 | + Then I see "All files deleted" |
| 101 | + When I click the "Exit" button |
| 102 | + # delete file copy |
| 103 | + When I click the first button containing "DoNotDeleteThisFolder_CanDeleteAllChildren" |
| 104 | + Then I click checkbox for with "1" files with random names |
| 105 | + When I click the "Menu Toggle" button |
| 106 | + Then I click the "Delete" menuitem |
| 107 | + Then I click the "Delete" button |
| 108 | + Then I see "All files deleted" |
| 109 | + |
| 110 | + @react |
| 111 | + Scenario: upload a folder |
| 112 | + When I type my "email" with status "CONFIRMED" |
| 113 | + Then I type my password |
| 114 | + Then I click the "Sign in" button |
| 115 | + When I click the first button containing "public" |
| 116 | + Then I see the "Menu Toggle" button |
| 117 | + When I click the "Menu Toggle" button |
| 118 | + # upload file |
| 119 | + Then I see the "Upload" menuitem |
| 120 | + When I click the "Upload" menuitem |
| 121 | + Then the "Upload" button is disabled |
| 122 | + Then I upload a folder "e2eTemp" with "2" files with random names |
| 123 | + Then I see "Not started" |
| 124 | + Then I click the label containing text "Overwrite existing files" |
| 125 | + When I click the "Upload" button |
| 126 | + Then I see "100%" |
| 127 | + Then I see "All files uploaded" |
| 128 | + When I click the "Exit" button |
| 129 | + # list uploaded file |
| 130 | + When I click the first button containing "e2eTemp" |
| 131 | + Then I see "2" files with random names |
| 132 | + # delete created file |
| 133 | + Then I click the element with id attribute "header-checkbox" |
| 134 | + When I click the "Menu Toggle" button |
| 135 | + Then I click the "Delete" menuitem |
| 136 | + Then I click the "Delete" button |
| 137 | + Then I see "All files deleted" |
| 138 | + When I click the "Exit" button |
| 139 | + # verify all files are deleted |
| 140 | + Then I see "No files" |
| 141 | + |
0 commit comments