Skip to content

Commit 6c45d72

Browse files
author
Peter Cenov
committed
final additions and corrections
1 parent e801e25 commit 6c45d72

2 files changed

Lines changed: 131 additions & 6 deletions

File tree

integration_testing/features/manage-resources/upload-files.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Feature: Upload files
1818
Then I see the *Edit files* modal #if I am uploading resources to a folder with metadata then I will first see the *Apply details from the folder <folder_name>*
1919
When I fill in all the required fields
2020
And I click the *Finish* button
21-
Then I am returned to the main topic tree view
21+
Then I am back at the channel editor page
2222
And I can see the uploaded file
2323

2424
Scenario: Upload multiple supported files
@@ -30,7 +30,7 @@ Feature: Upload files
3030
Then I see the *Edit files* modal #if I am uploading resources to a folder with metadata then I will first see the *Apply details from the folder <folder_name>*
3131
When I fill in all the required fields for each file
3232
And I click the *Finish* button
33-
Then I am returned to the main topic tree view
33+
Then I am back at the channel editor page
3434
And I can see the uploaded files
3535

3636
Scenario: Upload more files
@@ -42,7 +42,7 @@ Feature: Upload files
4242
Then I see the *Edit files* modal #if I am uploading resources to a folder with metadata then I will first see the *Apply details from the folder <folder_name>*
4343
When I fill in all the required fields for each file
4444
And I click the *Finish* button
45-
Then I am returned to the main topic tree view
45+
Then I am back at the channel editor page
4646
And I can see the uploaded files
4747

4848
Scenario: Upload more files by drag and drop
@@ -51,7 +51,7 @@ Feature: Upload files
5151
Then I see the *Edit files* modal with the newly uploaded files #if I am uploading resources to a folder with metadata then I will first see the *Apply details from the folder <folder_name>*
5252
When I fill in all the required fields for each file
5353
And I click the *Finish* button
54-
Then I am returned to the main topic tree view
54+
Then I am back at the channel editor page
5555
And I can see the uploaded files
5656

5757
Scenario: Cancel the file upload
@@ -63,4 +63,4 @@ Feature: Upload files
6363
Then I am back at the *Upload files* modal
6464
When I close the modal
6565
Then I am returned to the main topic tree view
66-
And I can see the uploaded files are not present
66+
And I can see the uploaded files are not present

integration_testing/features/studio-integration-testing.feature

Lines changed: 126 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Feature: Kolibri Studio integration testing scenarios
4646
And I fill in the *New password* field
4747
And I fill in the *Confirm password* field with the same password
4848
And I press the *Submit* button
49-
Then I see the following message: Password reset successfully
49+
Then I see the following message: *Password reset successfully*
5050

5151
Scenario: Explore without an account
5252
Given I am not signed in to Studio
@@ -133,6 +133,20 @@ Feature: Kolibri Studio integration testing scenarios
133133
Then I am back at the channel editor page
134134
And I can see the newly created folder
135135
136+
Scenario: Create multiple folders
137+
Given I am signed in to Studio
138+
And I am at the channel editor page
139+
And I have created an empty folder tree
140+
When I click *⋮* (Options) button for a folder
141+
And I click the *New folder* option
142+
Then I see the *New folder* modal
143+
When I fill in the required fields
144+
And I click the *Add new folder* button
145+
Then I can fill in the required fields for a new folder #repeat this process for as many empty folders as you need
146+
When I click the *Finish* button
147+
Then I am at the channel editor page
148+
And I can see the created folders
149+
136150
Scenario: Upload all supported files
137151
Given I am signed in to Studio
138152
And I am at the channel editor page
@@ -151,6 +165,15 @@ Feature: Kolibri Studio integration testing scenarios
151165
Then I am back at the channel editor page
152166
And I can see the uploaded files
153167
168+
Scenario: Upload more files by drag and drop
169+
Given I am at the *Edit files* modal after having imported some files
170+
When I drag and drop files
171+
Then I see the *Edit files* modal with the newly uploaded files #if I am uploading resources to a folder with metadata then I will first see the *Apply details from the folder <folder_name>*
172+
When I fill in all the required fields for each file
173+
And I click the *Finish* button
174+
Then I am back at the channel editor page
175+
And I can see the uploaded files
176+
154177
Scenario: Create a new exercise (Completion: When goal is met - Goal: 100% correct)
155178
Given I am signed in to Studio
156179
And I am at the channel editor page
@@ -334,6 +357,44 @@ Feature: Kolibri Studio integration testing scenarios
334357
When I navigate to the *Community Library* page
335358
Then I can see that the channel is shown among the other Community Library channels
336359
360+
Scenario: Community Library page overview (published channels)
361+
Given several channels have already been published to the Community Library
362+
When I look at the page
363+
Then I see the *Community Library* title
364+
And I see *Browse community-submitted channels approved for discovery in Studio. Copy a token to use a channel in Kolibri. What is the Community Library?*
365+
And I see a *Help grow the Community Library* banner with a *Go to my channels* button
366+
And I see the cards of all of the currently published channels
367+
And I see the following filters to the left of the page: *Search*, *Countries*, *Languages*, *Categories*
368+
369+
Scenario: Filter channels at the Community Library page
370+
Given several channels have already been published to the Community Library
371+
When I enter a keyword in the *Search* field
372+
Then I see only the results matching the entered keyword
373+
When there are no results matching the entered keyword
374+
Then I see a *0 results found* text
375+
And I see a *No channels match the selected filters.* message
376+
When I click the *Clear all* link
377+
Then I see the full list with the available cards
378+
When apply any of the other available filters (*Countries*, *Languages*, *Categories*)
379+
Then I see only the results matching the applied filters
380+
When there are no results matching the applied filters
381+
Then I see a *0 results found* text
382+
And I see a *No channels match the selected filters.* message
383+
384+
Scenario: View the channel details and download the files with the channel summary
385+
Given I am signed in to Studio
386+
And I am in any of the tabs (*My Channels*, *Starred*, *View only*, or *Content Library*)
387+
When I click the *i* button for the desired channel
388+
Then I see a new page with the channel details
389+
And I see the detailed information for the channel (token, size and resources, language, etc.)
390+
And I see the *Download channel summary* button
391+
When I click the *Download channel summary* button
392+
Then I see the options to download the summary as a PDF or a CSV file
393+
When I select the option to download as PDF
394+
Then I can save and open the PDF file in my default system PDF reader application
395+
When I select the option to download CSV
396+
Then I can save and open the CSV file in my default system CSV application
397+
337398
Scenario: Invite collaborators with *Can edit* permissions
338399
Given I am signed in to Studio
339400
And I am at the channel editor page
@@ -422,6 +483,23 @@ Feature: Kolibri Studio integration testing scenarios
422483
And I see the *Undo* button
423484
And I no longer see the resource
424485
486+
Scenario: Remove folders and resources through the *···* (Options) menu
487+
Given I am signed in to Studio
488+
And I am at the channel editor page
489+
And there are available resources of different types
490+
When I hover over a folder
491+
And I click on the *···* (Options) button
492+
And I select the *Remove* option
493+
Then I can see the *Sent to trash* snackbar notification
494+
And I see the *Undo* button
495+
And I no longer see the removed folder
496+
When I hover over a resource
497+
And I click on the *···* (Options) button
498+
And I select the *Remove* option
499+
Then I can see the *Sent to trash* snackbar notification
500+
And I see the *Undo* button
501+
And I no longer see the resource
502+
425503
Scenario: Removed folder and resources can be restored
426504
Given I am signed in to Studio
427505
And I am at the channel editor page
@@ -561,6 +639,53 @@ Feature: Kolibri Studio integration testing scenarios
561639
And I see the newly created collection
562640
And I see the number of channels in that collection
563641
642+
Scenario: Create a collection by searching for channels
643+
Given I am signed in to Studio
644+
And I am on the *Collections* tab
645+
When I click the *New collection* button
646+
And I click the *Select channels* button
647+
Then I see the *Select channels* page
648+
And I am on the *Kolibri library* tab # alternatively I can select the *My channels* or *View-only* tab
649+
When I enter a search term in the *Search for a channel* field
650+
And I select one or several channels
651+
And I click the *Finish* button
652+
Then I see the *New collection* screen with the selected channels
653+
When I click the *Create* button
654+
Then I see the *Collections* page
655+
And I see the newly created collection
656+
And I see the correct number of channels in that collection
657+
658+
Scenario: Edit a collection
659+
Given I am signed in to Studio
660+
And I am on the *Collections* tab
661+
And I've already created some collections
662+
When I click the *Options* drop-down for the collection I want to edit
663+
And I select the *Edit collection* option
664+
Then I see the collection's details
665+
And I can change the collection name
666+
When I click the *Select channels* button
667+
Then I am on the *Kolibri library* tab # alternatively I can select the *My channels* or *View-only* tab
668+
When I select one or several channels
669+
And I click the *Finish* button
670+
Then I see the the *New collection* screen with the selected channels
671+
When I click the *Remove* button
672+
Then I see a *Channel removed* snackbar message
673+
When I click the *Save and close* button
674+
Then I see the *Collections* page
675+
And I see the edited collection
676+
And I see the number of channels in that collection
677+
678+
Scenario: Delete a collection
679+
Given I am signed in to Studio
680+
And I am on the *Collections* tab
681+
And I've already created some collections
682+
When I click the *Options* drop-down for the collection I want to edit
683+
And I select the *Delete collection* option
684+
Then I see the *Delete collection* modal window
685+
When I click the *Delete collection* button
686+
Then I see the *Collections* page
687+
And I see that the deleted collection is no longer displayed
688+
564689
Scenario: Explore the Content library
565690
Given I am signed in to Studio
566691
When I go to the *Content library*

0 commit comments

Comments
 (0)