Skip to content

Commit c52b3a2

Browse files
authored
Merge pull request learningequality#5877 from pcenov/gherkin-updates-may
Gherkin scenarios updates and corrections
2 parents f91b652 + 73fe8a1 commit c52b3a2

14 files changed

Lines changed: 383 additions & 97 deletions
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
Feature: Community Library
2+
3+
Background:
4+
Given I am signed in to Studio
5+
And I am at the *Community Library* page
6+
7+
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*
58+
When I click the *X* icon
59+
Then I am back at the *Community Library* page

integration_testing/features/manage-account/view-and-request-more-storage.feature

Lines changed: 0 additions & 32 deletions
This file was deleted.

integration_testing/features/manage-channels/add-channel-to-starred.feature

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ Feature: Add a channel to the *Starred* tab
33

44
Background:
55
Given I am signed in to Studio
6-
And I am on any of the tabs (*My Channels*, *Starred*, *View-only*, or *Content Library*)
7-
And I see a channel that is not starred (white star)
6+
And I am on any of the tabs (*My Channels*, *Starred*, *View-only*, or *Kolibri Library*)
7+
And there is a channel which is not starred (white star)
88

9-
Scenario: Add channel to the *Starred* tab
9+
Scenario: Add a channel to the *Starred* tab
1010
When I click the *Add to starred channels* button for the desired channel
11-
Then I see that the channel's *Add to starred channels* button is now black
12-
And I see a message that the channel was added to the starred channels
11+
Then I see a snackbar message that the channel was added to the starred channels
12+
And I see that the channel's *Add to starred channels* button is now black and the tooltip message is now *Remove from starred channels*
1313
When I click and open the *Starred* tab
1414
Then I see that the channel is displayed among the starred channels
1515

@@ -28,9 +28,9 @@ Feature: Add a channel to the *Starred* tab
2828
When I click the *Remove from starred channels* button for the channel
2929
Then I don't see the removed channel any more
3030

31-
Scenario: Remove a starred channel form the *Content Library* tab with *Starred* filter on
32-
Given I am on the *Content Library* tab
31+
Scenario: Remove a starred channel form the *Kolibri Library* tab with *Starred* filter on
32+
Given I am on the *Kolibri Library* tab
3333
And I've selected the *Starred* checkbox
34-
When I click on the star button of a starred channel.
34+
When I click on the star button of a starred channel
3535
Then I see a message that the channel was removed from the starred channels
3636
And the channel is no longer displayed in the list with the filtered channels

integration_testing/features/manage-channels/create-a-channel.feature

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ Feature: Create a channel
1616
Then I am at the channel editor view
1717
And I see the title of the channel to the left
1818
And I see a disabled *Publish* button
19-
And I see *Click "ADD" to start building your channel Create, upload, or import resources from other channels*
19+
And I see a *Share* drop-down to the left of it
20+
And I see a grayed out *Unpublished* label to the left of it
2021
And I see a blue *Add* button
22+
And I see the following info text: *Click "ADD" to start building your channel Create, upload, or import resources from other channels*

integration_testing/features/manage-channels/get-channel-token-after-publishing.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ Feature: Get channel token after publishing the channel
1111
Then I see the *Copy channel token*
1212
And I see the channel token e.g. hufim-lolib
1313
When I click on the copy button
14-
Then a *Token copied* snackbar message
14+
Then I see a *Token copied* snackbar message
1515
When I click the *Close* button
1616
Then the modal closes

integration_testing/features/manage-channels/publish-channel.feature

Lines changed: 48 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,52 @@ Feature: Publish a channel
33
Background:
44
Given I am signed in to Studio
55
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
77

88
Scenario: Publish a channel
99
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
1416
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
1719
When the channel has been published successfully
1820
Then the progress indicator text changes to *Published NN seconds ago*
1921
And the *Publish* button remains disabled
2022
When after a period of time I check my email
2123
Then I see that I have received a confirmation email that the channel has been published successfully
2224

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+
2345
Scenario: Publish a large channel
2446
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
2549
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
3352
When the channel has been published successfully
3453
Then the progress indicator text changes to *Published NN seconds ago*
3554
And the *Publish* button remains disabled
@@ -38,40 +57,33 @@ Feature: Publish a channel
3857

3958
Scenario: Publish a channel with incomplete resources
4059
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
4261
Then I see a yellow icon with exclamation
4362
And I see a the number of incomplete resources
4463
And when I hover over the icon I see *N resources are incomplete and cannot be published*
4564
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
5368
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
5671
When the channel has been published successfully
5772
Then the progress indicator text changes to *Published NN seconds ago*
5873
And the *Publish* button remains disabled
5974
When after a period of time I check my email
6075
Then I see that I have received a confirmation email that the channel has been published successfully
6176

6277
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
7284
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
7587
When the channel has been published successfully
7688
Then the progress indicator text changes to *Published NN seconds ago*
7789
And the *Publish* button remains disabled
@@ -80,6 +92,7 @@ Feature: Publish a channel
8092

8193
Scenario: Attempt to publish a *View-only* channel
8294
Given I've been invited to view a *View-only* channel
95+
And I'm not signed in as a studio administrator user
8396
When I attempt to publish the channel
8497
Then I see a *View-only* text at the place of the *Publish* button
8598
And it's not possible to publish the channel

0 commit comments

Comments
 (0)