Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
Feature: Community Library

Background:
Given I am signed in to Studio
And I am at the *Community Library* page

Scenario: Community Library page overview (no published channels)
Given no channels have been published to the Community Library yet
When I look at the page
Then I see the *Community Library* title
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?*
And I see a *Help grow the Community Library* banner with a *Go to my channels* button
And I see a *No channels have been published to the Community Library yet.* message
And I see the following filters to the left of the page: *Search*, *Countries*, *Languages*, *Categories*
When I click the *Go to my channels* button
Then I am redirected to the *My channels* page

Scenario: Community Library page overview (published channels)
Given several channels have already been published to the Community Library
When I look at the page
Then I see the *Community Library* title
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?*
And I see a *Help grow the Community Library* banner with a *Go to my channels* button
And I see the cards of all of the currently published channels
And I see the following filters to the left of the page: *Search*, *Countries*, *Languages*, *Categories*

Scenario: Filter channels at the Community Library page
Given several channels have already been published to the Community Library
When I enter a keyword in the *Search* field
Then I see only the results matching the entered keyword
When there are no results matching the entered keyword
Then I see a *0 results found* text
And I see a *No channels match the selected filters.* message
When I click the *Clear all* link
Then I see the full list with the available cards
When apply any of the other available filters (*Countries*, *Languages*, *Categories*)
Then I see only the results matching the applied filters
When there are no results matching the applied filters
Then I see a *0 results found* text
And I see a *No channels match the selected filters.* message

Scenario: See the card details and channel token
Given several channels have already been published to the Community Library
When I look at a community channel's card
Then I see the channel's name, image, number of resources and countries
And I see when the channel was published
And I see an info icon and a *Copy channel token* icon
When I click on the *Copy channel token* icon
Then I see the *Copy channel token* modal
And I can copy the channel token

Scenario: See the details of a community channel
Given several channels have already been published to the Community Library
When I click on a community channel's card
Then I see the community channel's details page
And I see the channel image, name and description
And I see values for the following fields: *Channel token*, *Published on*, *Published version*, *Primary language*, *Channel size*, *Total resources*, *Categories*, *Languages*, *Countries*, *Licenses*
When I click the *X* icon
Then I am back at the *Community Library* page

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ Feature: Add a channel to the *Starred* tab

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

Scenario: Add channel to the *Starred* tab
Scenario: Add a channel to the *Starred* tab
When I click the *Add to starred channels* button for the desired channel
Then I see that the channel's *Add to starred channels* button is now black
And I see a message that the channel was added to the starred channels
Then I see a snackbar message that the channel was added to the starred channels
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*
When I click and open the *Starred* tab
Then I see that the channel is displayed among the starred channels

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

Scenario: Remove a starred channel form the *Content Library* tab with *Starred* filter on
Given I am on the *Content Library* tab
Scenario: Remove a starred channel form the *Kolibri Library* tab with *Starred* filter on
Given I am on the *Kolibri Library* tab
And I've selected the *Starred* checkbox
When I click on the star button of a starred channel.
When I click on the star button of a starred channel
Then I see a message that the channel was removed from the starred channels
And the channel is no longer displayed in the list with the filtered channels
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ Feature: Create a channel
Then I am at the channel editor view
And I see the title of the channel to the left
And I see a disabled *Publish* button
And I see *Click "ADD" to start building your channel Create, upload, or import resources from other channels*
And I see a *Share* drop-down to the left of it
And I see a grayed out *Unpublished* label to the left of it
And I see a blue *Add* button
And I see the following info text: *Click "ADD" to start building your channel Create, upload, or import resources from other channels*
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ Feature: Get channel token after publishing the channel
Then I see the *Copy channel token*
And I see the channel token e.g. hufim-lolib
When I click on the copy button
Then a *Token copied* snackbar message
Then I see a *Token copied* snackbar message
When I click the *Close* button
Then the modal closes
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,52 @@ Feature: Publish a channel
Background:
Given I am signed in to Studio
And I am at the channel editor page for a channel created by me
And the there are unpublished resources
And there are unpublished resources

Scenario: Publish a channel
When I click the *Publish* button
Then I see the *Publish modal*
And I see the title of the channel
And I see a *Version description* field
When I enter a description
Then I see the *Publish channel* side panel
And I see a checked *Publish channel* radio button
And I see *You are publishing: Version N*
And I see a *Version description* field and a *Language* drop-down with a prefilled language
And I see a unchecked *Publish draft channel* radio button
When I enter a version description
And I click the *Publish* button
Then the modal disappears
And I see the *Publishing channel 0%* progress indicator to the left of the *Publish* button
Then the side panel closes
And I see the *Publishing channel 0%* progress indicator to the left of the *Share* drop-down
When the channel has been published successfully
Then the progress indicator text changes to *Published NN seconds ago*
And the *Publish* button remains disabled
When after a period of time I check my email
Then I see that I have received a confirmation email that the channel has been published successfully

Scenario: Publish a draft channel
Given I am at the *Publish channel* side panel
When I check the *Publish draft channel* radio-button
And I click the *Save draft* button
Then the side panel closes
And I see a *Draft version is being published* snackbar message
When the draft channel has been published successfully
Then the snackbar message changes to *Draft published successfully PREVIEW*
When I click the *Preview* button
Then I see the *Preview your draft channel in Kolibri* modal
And I see a draft token field with the draft token and a copy button to the right
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.*
When I click the *Dismiss* button
Then the modal closes
When I click the *...* button next to the *Publish* button
Then I see a *Copy token for draft channel*
When I click on *Copy token for draft channel*
Then I see the *Preview your draft channel in Kolibri* modal
And I can copy the token

Scenario: Publish a large channel
Given there is an unpublished channel with more than 5000 nodes
And I am at the *Publish channel* side panel
And I have filled in all the required fields
When I click the *Publish* button
Then I see the *Publish modal*
And I see the title of the channel
And I see a *Version description* field
When I enter a description
And I click the *Publish* button
Then the modal disappears
And I see the *Publishing channel 0%* progress indicator to the left of the *Publish* button
Then the side panel closes
And I see the *Publishing channel 0%* progress indicator to the left of the *Share* drop-down
When the channel has been published successfully
Then the progress indicator text changes to *Published NN seconds ago*
And the *Publish* button remains disabled
Expand All @@ -38,40 +57,33 @@ Feature: Publish a channel

Scenario: Publish a channel with incomplete resources
Given the channel contains incomplete resources
When I look to the left of the *Publish* button
When I look to the left of the *Share* drop-down
Then I see a yellow icon with exclamation
And I see a the number of incomplete resources
And when I hover over the icon I see *N resources are incomplete and cannot be published*
When I click the *Publish* button
Then I see the *Publish modal*
And I see text informing me of the number of incomplete resources and they won't be published
When I click the *Continue* button
Then I see the *Publish modal*
And I see the title of the channel
And I see a *Version description* field
When I enter a description
Then I see the *Publish channel* side panel
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.*
When I fill in all the required fields
And I click the *Publish* button
Then the modal disappears
And I see the *Publishing channel 0%* progress indicator to the left of the *Publish* button
Then the side panel closes
And I see the *Publishing channel 0%* progress indicator to the left of the *Share* drop-down
When the channel has been published successfully
Then the progress indicator text changes to *Published NN seconds ago*
And the *Publish* button remains disabled
When after a period of time I check my email
Then I see that I have received a confirmation email that the channel has been published successfully

Scenario: Publish a channel with resources in different languages
Given the channel contains multiple resources in different languages
When I click the *Publish* button
Then I see the *Publish modal*
And I see the title of the channel
And I see a *Version description* field
And I see a *Language* drop-down in red
And I see *Please select a language for this channel*
When I enter a description
And I select a language
Given I am at the *Publish channel* side panel
And the channel contains multiple resources in different languages
When I click on the *Language* drop-down
Then I see all of the available languages for the channel
When I fill in the *Version description* field
And I select a language from the *Language* drop-down
And I click the *Publish* button
Then the modal disappears
And I see the *Publishing channel 0%* progress indicator to the left of the *Publish* button
Then the side panel closes
And I see the *Publishing channel 0%* progress indicator to the left of the *Share* drop-down
When the channel has been published successfully
Then the progress indicator text changes to *Published NN seconds ago*
And the *Publish* button remains disabled
Expand All @@ -80,6 +92,7 @@ Feature: Publish a channel

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