You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario: Community Library page overview (no published channels)
8
+
Given no channels have been published to the Community Library yet
9
+
When I look at the page
10
+
Then I see the *Community Library* title
11
+
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?*
12
+
And I see a *Help grow the Community Library* banner with a *Go to my channels* button
13
+
And I see a *No channels have been published to the Community Library yet.* message
14
+
And I see the following filters to the left of the page: *Search*, *Countries*, *Languages*, *Categories*
15
+
When I click the *Go to my channels* button
16
+
Then I am redirected to the *My channels* page
17
+
18
+
Scenario: Community Library page overview (published channels)
19
+
Given several channels have already been published to the Community Library
20
+
When I look at the page
21
+
Then I see the *Community Library* title
22
+
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?*
23
+
And I see a *Help grow the Community Library* banner with a *Go to my channels* button
24
+
And I see the cards of all of the currently published channels
25
+
And I see the following filters to the left of the page: *Search*, *Countries*, *Languages*, *Categories*
26
+
27
+
Scenario: Filter channels at the Community Library page
28
+
Given several channels have already been published to the Community Library
29
+
When I enter a keyword in the *Search* field
30
+
Then I see only the results matching the entered keyword
31
+
When there are no results matching the entered keyword
32
+
Then I see a *0 results found* text
33
+
And I see a *No channels match the selected filters.* message
34
+
When I click the *Clear all* link
35
+
Then I see the full list with the available cards
36
+
When apply any of the other available filters (*Countries*, *Languages*, *Categories*)
37
+
Then I see only the results matching the applied filters
38
+
When there are no results matching the applied filters
39
+
Then I see a *0 results found* text
40
+
And I see a *No channels match the selected filters.* message
41
+
42
+
Scenario: See the card details and channel token
43
+
Given several channels have already been published to the Community Library
44
+
When I look at a community channel's card
45
+
Then I see the channel's name, image, number of resources and countries
46
+
And I see when the channel was published
47
+
And I see an info icon and a *Copy channel token* icon
48
+
When I click on the *Copy channel token* icon
49
+
Then I see the *Copy channel token* modal
50
+
And I can copy the channel token
51
+
52
+
Scenario: See the details of a community channel
53
+
Given several channels have already been published to the Community Library
54
+
When I click on a community channel's card
55
+
Then I see the community channel's details page
56
+
And I see the channel image, name and description
57
+
And I see values for the following fields: *Channel token*, *Published on*, *Published version*, *Primary language*, *Channel size*, *Total resources*, *Categories*, *Languages*, *Countries*, *Licenses*
Copy file name to clipboardExpand all lines: integration_testing/features/manage-channels/publish-channel.feature
+48-35Lines changed: 48 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -3,33 +3,52 @@ Feature: Publish a channel
3
3
Background:
4
4
Given I am signed in to Studio
5
5
And I am at the channel editor page for a channel created by me
6
-
And the there are unpublished resources
6
+
And there are unpublished resources
7
7
8
8
Scenario: Publish a channel
9
9
When I click the *Publish* button
10
-
Then I see the *Publish modal*
11
-
And I see the title of the channel
12
-
And I see a *Version description* field
13
-
When I enter a description
10
+
Then I see the *Publish channel* side panel
11
+
And I see a checked *Publish channel* radio button
12
+
And I see *You are publishing: Version N*
13
+
And I see a *Version description* field and a *Language* drop-down with a prefilled language
14
+
And I see a unchecked *Publish draft channel* radio button
15
+
When I enter a version description
14
16
And I click the *Publish* button
15
-
Then the modal disappears
16
-
And I see the *Publishing channel 0%* progress indicator to the left of the *Publish* button
17
+
Then the side panel closes
18
+
And I see the *Publishing channel 0%* progress indicator to the left of the *Share* drop-down
17
19
When the channel has been published successfully
18
20
Then the progress indicator text changes to *Published NN seconds ago*
19
21
And the *Publish* button remains disabled
20
22
When after a period of time I check my email
21
23
Then I see that I have received a confirmation email that the channel has been published successfully
22
24
25
+
Scenario: Publish a draft channel
26
+
Given I am at the *Publish channel* side panel
27
+
When I check the *Publish draft channel* radio-button
28
+
And I click the *Save draft* button
29
+
Then the side panel closes
30
+
And I see a *Draft version is being published* snackbar message
31
+
When the draft channel has been published successfully
32
+
Then the snackbar message changes to *Draft published successfully PREVIEW*
33
+
When I click the *Preview* button
34
+
Then I see the *Preview your draft channel in Kolibri* modal
35
+
And I see a draft token field with the draft token and a copy button to the right
36
+
And I see the following text: *You can use this token to import and preview the draft channel in Kolibri. Please note that the token for the final published channel will be different.*
37
+
When I click the *Dismiss* button
38
+
Then the modal closes
39
+
When I click the *...* button next to the *Publish* button
40
+
Then I see a *Copy token for draft channel*
41
+
When I click on *Copy token for draft channel*
42
+
Then I see the *Preview your draft channel in Kolibri* modal
43
+
And I can copy the token
44
+
23
45
Scenario: Publish a large channel
24
46
Given there is an unpublished channel with more than 5000 nodes
47
+
And I am at the *Publish channel* side panel
48
+
And I have filled in all the required fields
25
49
When I click the *Publish* button
26
-
Then I see the *Publish modal*
27
-
And I see the title of the channel
28
-
And I see a *Version description* field
29
-
When I enter a description
30
-
And I click the *Publish* button
31
-
Then the modal disappears
32
-
And I see the *Publishing channel 0%* progress indicator to the left of the *Publish* button
50
+
Then the side panel closes
51
+
And I see the *Publishing channel 0%* progress indicator to the left of the *Share* drop-down
33
52
When the channel has been published successfully
34
53
Then the progress indicator text changes to *Published NN seconds ago*
35
54
And the *Publish* button remains disabled
@@ -38,40 +57,33 @@ Feature: Publish a channel
38
57
39
58
Scenario: Publish a channel with incomplete resources
40
59
Given the channel contains incomplete resources
41
-
When I look to the left of the *Publish* button
60
+
When I look to the left of the *Share* drop-down
42
61
Then I see a yellow icon with exclamation
43
62
And I see a the number of incomplete resources
44
63
And when I hover over the icon I see *N resources are incomplete and cannot be published*
45
64
When I click the *Publish* button
46
-
Then I see the *Publish modal*
47
-
And I see text informing me of the number of incomplete resources and they won't be published
48
-
When I click the *Continue* button
49
-
Then I see the *Publish modal*
50
-
And I see the title of the channel
51
-
And I see a *Version description* field
52
-
When I enter a description
65
+
Then I see the *Publish channel* side panel
66
+
And I see text a yellow *N incomplete resources* banner with the following message: *Incomplete resources will not be published and made available for download in Kolibri.*
67
+
When I fill in all the required fields
53
68
And I click the *Publish* button
54
-
Then the modal disappears
55
-
And I see the *Publishing channel 0%* progress indicator to the left of the *Publish* button
69
+
Then the side panel closes
70
+
And I see the *Publishing channel 0%* progress indicator to the left of the *Share* drop-down
56
71
When the channel has been published successfully
57
72
Then the progress indicator text changes to *Published NN seconds ago*
58
73
And the *Publish* button remains disabled
59
74
When after a period of time I check my email
60
75
Then I see that I have received a confirmation email that the channel has been published successfully
61
76
62
77
Scenario: Publish a channel with resources in different languages
63
-
Given the channel contains multiple resources in different languages
64
-
When I click the *Publish* button
65
-
Then I see the *Publish modal*
66
-
And I see the title of the channel
67
-
And I see a *Version description* field
68
-
And I see a *Language* drop-down in red
69
-
And I see *Please select a language for this channel*
70
-
When I enter a description
71
-
And I select a language
78
+
Given I am at the *Publish channel* side panel
79
+
And the channel contains multiple resources in different languages
80
+
When I click on the *Language* drop-down
81
+
Then I see all of the available languages for the channel
82
+
When I fill in the *Version description* field
83
+
And I select a language from the *Language* drop-down
72
84
And I click the *Publish* button
73
-
Then the modal disappears
74
-
And I see the *Publishing channel 0%* progress indicator to the left of the *Publish* button
85
+
Then the side panel closes
86
+
And I see the *Publishing channel 0%* progress indicator to the left of the *Share* drop-down
75
87
When the channel has been published successfully
76
88
Then the progress indicator text changes to *Published NN seconds ago*
77
89
And the *Publish* button remains disabled
@@ -80,6 +92,7 @@ Feature: Publish a channel
80
92
81
93
Scenario: Attempt to publish a *View-only* channel
82
94
Given I've been invited to view a *View-only* channel
95
+
And I'm not signed in as a studio administrator user
83
96
When I attempt to publish the channel
84
97
Then I see a *View-only* text at the place of the *Publish* button
0 commit comments