Skip to content

Commit e801e25

Browse files
author
Peter Cenov
committed
additional scenarios and updates
1 parent 09076fa commit e801e25

3 files changed

Lines changed: 155 additions & 1 deletion

File tree

integration_testing/features/administration/admin-channels.feature

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,74 @@ Feature: Administration - Manage channels
7171
Then I am seeing only results matching the entered keyword
7272
When there aren't any results for the entered keyword
7373
Then I see a *No users found* message
74+
75+
Scenario: View the channel details page
76+
When I click on the name of a channel
77+
Then I see the channel details page
78+
And I am at the *Channel info* tab
79+
And I can see all of the available channel metadata such as token, version, language etc.
80+
81+
Scenario: View the channel editors
82+
When I click the *Actions* drop-down
83+
And I select the *View editors* option
84+
Then I see the *Users* table
85+
And I can see that a search has been initiated for the specified channel
86+
And I can see all of the channel editors
87+
88+
Scenario: Download the PDF and CSV for a channel
89+
When I click the *Actions* drop-down
90+
And I select the *Download PDF* option
91+
Then I see the *Generating PDF* snackbar message
92+
And I can download the generated .pdf file on my device and view it
93+
When I click the *Actions* drop-down
94+
And I select the *Download CSV* option
95+
Then I see the *Generating CSV* snackbar message
96+
And I can download the generated .csv file on my device and view it
97+
98+
Scenario: Make a channel public
99+
When I click the *Actions* drop-down
100+
And I select the *Make public* option
101+
Then I see the *Make channel public* modal
102+
When I click the *Make public* button
103+
Then I see a *Channel changed to public* snackbar message
104+
And I see a green circle icon in front of the channel name indicating that the channel is public
105+
106+
Scenario: Make a channel private
107+
Given I have made a channel public
108+
When I click the *Actions* drop-down
109+
And I select the *Make private* option
110+
Then I see the *Make channel private* modal
111+
When I click the *Make private* button
112+
Then I see a *Channel changed to private* snackbar message
113+
And I no longer see a green circle icon in front of the channel name indicating that the channel is now private
114+
115+
Scenario: Delete a channel
116+
When I click the *Actions* drop-down
117+
And I select the *Delete channel* option
118+
Then I see a *Delete channel* confirmation modal
119+
When I click the *Delete* button
120+
Then I see a *Channel deleted* snackbar message
121+
And the channel's details are colored in red
122+
And I see a *Deleted* label in the *Token ID* column
123+
When I go to the channel's details page
124+
Then I see a red banner with the following text: This channel has been deleted
125+
When I click the *Actions* drop-down
126+
Then I see the following options: Restore, Delete permanently
127+
128+
Scenario: Restore a deleted channel
129+
Given I have deleted a channel
130+
When I click the *Actions* drop-down for the deleted channel
131+
And I select the *Restore* option
132+
Then I see the *Restore channel* confirmation modal
133+
When I click the *Restore* button
134+
Then I see a *Channel restored* snackbar message
135+
And I can see that the channel is fully restored
136+
137+
Scenario: Permanently delete a deleted channel
138+
Given I have deleted a channel
139+
When I click the *Actions* drop-down for the deleted channel
140+
And I select the *Delete permanently* option
141+
Then I see the *Permanently delete channel* confirmation modal
142+
When I click the *Delete permanently* button
143+
Then I see a *Channel deleted permanently* snackbar message
144+
And I can see that the channel is no longer listed in the *All channels* table

integration_testing/features/studio-critical-workflows.feature

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,42 @@ Feature: Kolibri Studio critical workflows
284284
And I see a yellow exclamation icon with the following text *N resources are incomplete and cannot be published*
285285
And I receive a confirmation email that the channel has been published successfully
286286
287+
Scenario: Submit a channel to the Community Library
288+
Given I am signed in to Studio
289+
And I am at the channel editor page for a channel created by me
290+
And I have already published the channel
291+
When I click the *Share* drop-down button
292+
And I click the *Submit to Community Library* option
293+
Then I see the *Submit to Community Library* side panel
294+
And I see the title and version of the channel
295+
And I see the licensing section and info for the criteria for submitting to the Community Library
296+
And I see a *Countries* drop-down list
297+
And I see a description textbox
298+
When I select one or several countries
299+
And I enter the description
300+
And I click the *Submit for review* button
301+
Then the side panel closes
302+
And I see a *Submitting channel to Community Library...* snack-bar message
303+
And then after a moment I see a *Channel submitted for review* snackbar message
304+
305+
Scenario: Review a Community Library submission as an Administrator and approve it
306+
Given I'm signed in as an Administrator
307+
And I am at the Community Library submission for the channel
308+
And there are channels submitted for review
309+
When I click the *Review* button
310+
Then I see the *Review submission* side panel
311+
And I can see all the relevant info for the submitted channel
312+
And I can see the *Submission notes*
313+
And I can see that *Submitted* is selected by default in the *Change status* section
314+
When I change the status to *Approved*
315+
And I enter my reasoning in the *Editor's notes* field
316+
And I fill in the *Personal notes* (optional) field
317+
And I click the *Confirm button
318+
Then I see a *Channel status is changing* snackbar message
319+
And after a moment I see a *Submission approved* snackbar message
320+
When I navigate to the *Community Library* page
321+
Then I can see that the channel is shown among the other Community Library channels
322+
287323
Scenario: Invite collaborators with *Can edit* permissions
288324
Given I am signed in to Studio
289325
And I am at the channel editor page

integration_testing/features/studio-integration-testing.feature

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,42 @@ Feature: Kolibri Studio integration testing scenarios
298298
And I see a yellow exclamation icon with the following text *N resources are incomplete and cannot be published*
299299
And I receive a confirmation email that the channel has been published successfully
300300
301+
Scenario: Submit a channel to the Community Library
302+
Given I am signed in to Studio
303+
And I am at the channel editor page for a channel created by me
304+
And I have already published the channel
305+
When I click the *Share* drop-down button
306+
And I click the *Submit to Community Library* option
307+
Then I see the *Submit to Community Library* side panel
308+
And I see the title and version of the channel
309+
And I see the licensing section and info for the criteria for submitting to the Community Library
310+
And I see a *Countries* drop-down list
311+
And I see a description textbox
312+
When I select one or several countries
313+
And I enter the description
314+
And I click the *Submit for review* button
315+
Then the side panel closes
316+
And I see a *Submitting channel to Community Library...* snack-bar message
317+
And then after a moment I see a *Channel submitted for review* snackbar message
318+
319+
Scenario: Review a Community Library submission as an Administrator and approve it
320+
Given I'm signed in as an Administrator
321+
And I am at the Community Library submission for the channel
322+
And there are channels submitted for review
323+
When I click the *Review* button
324+
Then I see the *Review submission* side panel
325+
And I can see all the relevant info for the submitted channel
326+
And I can see the *Submission notes*
327+
And I can see that *Submitted* is selected by default in the *Change status* section
328+
When I change the status to *Approved*
329+
And I enter my reasoning in the *Editor's notes* field
330+
And I fill in the *Personal notes* (optional) field
331+
And I click the *Confirm button
332+
Then I see a *Channel status is changing* snackbar message
333+
And after a moment I see a *Submission approved* snackbar message
334+
When I navigate to the *Community Library* page
335+
Then I can see that the channel is shown among the other Community Library channels
336+
301337
Scenario: Invite collaborators with *Can edit* permissions
302338
Given I am signed in to Studio
303339
And I am at the channel editor page
@@ -425,14 +461,25 @@ Feature: Kolibri Studio integration testing scenarios
425461
And the resources are no longer in my original directory
426462
427463
Scenario: Apply metadata details from a folder when adding a resource
428-
Given I have created a folder with multiple metadata details such as categories, levels, requirements, language
464+
Given I am signed in to Studio
465+
And I am at the channel editor page
466+
And there are available resources of different types
467+
And I have created a folder with multiple metadata details such as categories, levels, requirements, language
429468
When I attempt to import, copy or move a resource into that folder
430469
Then I see the *Apply details from the folder <folder name>* modal
431470
And I see that all of the checkboxes for the available metadata are selected
432471
When I click the *Continue* button
433472
And I go to view the details of a resource
434473
Then I see that the selected metadata is filled in
435474
475+
Scenario: Move a resource into a folder with no metadata
476+
Given I am signed in to Studio
477+
And I am at the channel editor page
478+
And there are available resources of different types
479+
And I have created a folder named *Folder 1* with no metadata
480+
When I move a resource into *Folder 1*
481+
Then the modal for applying inheritable metadata is not displayed
482+
436483
Scenario: Delete a channel
437484
Given I am signed in to Studio
438485
And I have permissions to edit

0 commit comments

Comments
 (0)