diff --git a/integration_testing/features/community-library/community-library.feature b/integration_testing/features/community-library/community-library.feature new file mode 100755 index 0000000000..cfabfb3ceb --- /dev/null +++ b/integration_testing/features/community-library/community-library.feature @@ -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 diff --git a/integration_testing/features/manage-account/view-and-request-more-storage.feature b/integration_testing/features/manage-account/view-and-request-more-storage.feature deleted file mode 100755 index e3f0b0995b..0000000000 --- a/integration_testing/features/manage-account/view-and-request-more-storage.feature +++ /dev/null @@ -1,32 +0,0 @@ -Feature: View the storage and request more storage space - - Background: - Given I am signed in to Studio - And I am at the *Settings > Storage* page - And I have uploaded some resources to my channels - - Scenario: Review used storage - When I look at the *Settings > Storage* page - Then I see the *% storage used* progress bar - And I see the remaining storage as *NNN MB of NNN MB* - And I see the amount of storage used broken down by resources type - - Scenario: No storage used - Given that I have not uploaded any resources in my channels - When I look under the *% storage used* heading - Then I see that there is 0% storage used - - Scenario: Request more space - When I click the *Open form* link under the *Request more space* section - And I fill in all the space request required fields - And I click the *Send request* button - Then the form disappears - And I see a *Your storage request has been submitted for processing* snackbar message - When after a period of time I open my email - Then I see a *Kolibri Studio storage request from user@user.com* email - - Scenario: Submit more space request with errors - When I leave the required fields empty - And I click the *Send request* button - Then I see a *Please fix N errors below* error message above the form - And I see a *Field is required* text below each required field diff --git a/integration_testing/features/manage-channels/add-channel-to-starred.feature b/integration_testing/features/manage-channels/add-channel-to-starred.feature index aee4d9838a..f35e7468dc 100755 --- a/integration_testing/features/manage-channels/add-channel-to-starred.feature +++ b/integration_testing/features/manage-channels/add-channel-to-starred.feature @@ -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 @@ -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 diff --git a/integration_testing/features/manage-channels/create-a-channel.feature b/integration_testing/features/manage-channels/create-a-channel.feature index d448a239a2..55b70651a5 100755 --- a/integration_testing/features/manage-channels/create-a-channel.feature +++ b/integration_testing/features/manage-channels/create-a-channel.feature @@ -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* diff --git a/integration_testing/features/manage-channels/get-channel-token-after-publishing.feature b/integration_testing/features/manage-channels/get-channel-token-after-publishing.feature index 536744a46d..5cb43c774b 100755 --- a/integration_testing/features/manage-channels/get-channel-token-after-publishing.feature +++ b/integration_testing/features/manage-channels/get-channel-token-after-publishing.feature @@ -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 diff --git a/integration_testing/features/manage-channels/publish-channel.feature b/integration_testing/features/manage-channels/publish-channel.feature index 86e965286f..ed5527ce35 100755 --- a/integration_testing/features/manage-channels/publish-channel.feature +++ b/integration_testing/features/manage-channels/publish-channel.feature @@ -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 @@ -38,21 +57,17 @@ 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 @@ -60,18 +75,15 @@ Feature: Publish a channel 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 @@ -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 diff --git a/integration_testing/features/manage-channels/submit-channel-to-community-library.feature b/integration_testing/features/manage-channels/submit-channel-to-community-library.feature new file mode 100755 index 0000000000..c552f14406 --- /dev/null +++ b/integration_testing/features/manage-channels/submit-channel-to-community-library.feature @@ -0,0 +1,107 @@ +Feature: Submit a channel to the Community Library + + Background: + Given I am signed in to Studio + And I am at the channel editor page for a channel created by me + And I have already published the channel + + Scenario: Submit a channel to the Community Library + When I click the *Share* drop-down button + And I click the *Submit to Community Library* option + Then I see the *Submit to Community Library* side panel + And I see the title and version of the channel + And I see the licensing section and info for the criteria for submitting to the Community Library + And I see a *Countries* drop-down list + And I see a description textbox + When I select one or several countries + And I enter the description + And I click the *Submit for review* button + Then the side panel closes + And I see a *Submitting channel to Community Library...* snack-bar message + And then after a moment I see a *Channel submitted for review* snackbar message + + Scenario: Attempt to submit a channel which is already submitted + Given I've already submitted a channel to the Community Library + When I click the *Share* drop-down button + And I click the *Submit to Community Library* option + Then I see the *Submit to Community Library* side panel + And I I see a yellow *Submitted* status chip + And I see an info section informing me that the channel has already been submitted to the Community Library + And I see the title and version of the channel + And I see the licensing section and info for the criteria for submitting to the Community Library + And I see a disabled *Countries* drop-down list + And I see a disabled description textbox + And I see a disabled *Submit for review* button + When I click the *Cancel* button + Then the side panel closes + And I am back at the channel editor page + + Scenario: Review a Community Library submission as an Administrator and flag it for review + Given I'm signed in as an Administrator + And I am at the Community Library submission for the channel + When I click the *Review* button + Then I see the *Review submission* side panel + And I can see all the relevant info for the submitted channel + And I can see the *Submission notes* + And I can see that *Submitted* is selected by default in the *Change status* section + When I change the status to *Flag for review* + And I select a reason from the *Reason* drop-down + And I clarify my reasoning in the *Editor's notes* field + And I fill in the *Personal notes* (optional) field + And I click the *Confirm button + Then I see a *Channel status is changing* snackbar message + And after a moment I see a *Submission flagged for review* snackbar message + And I see that the status has changed to *Needs changes* + + Scenario: Resubmit a channel to the Community Library + Given I've submitted a channel to the Community Library and it has been flagged as *Needs changes* + When I open the Notifications + Then I see a new message informing me that I need to make changes to my submission + When I go to the channel editor page + And I click the *Share* drop-down button + And I click the *Submit to Community Library* option + Then I see the *Submit to Community Library* side panel + And I see the status changed to *Needs changes* + And I see the following text: *Your previously submitted version needs changes. Make sure you have addressed all comments before resubmitting.* + And I see the title and version of the channel + And I see the licensing section and info for the criteria for submitting to the Community Library + And I see a disabled *Countries* drop-down list + And I see a disabled description textbox + And I see a disabled *Submit for review* button + When I close the side panel + And I make the necessary corrections to my channel + And I publish it again + Then I see a *Resubmit channel for Community library review? modal + When I click the *Resubmit* modal + Then I see the *Submit to Community Library* side panel + And I see that all the previously disabled options are now enabled + When I fill in the required info + And I click the *Submit for review* button + Then the side panel closes + And I see a *Submitting channel to Community Library...* snack-bar message + And then after a moment I see a *Channel submitted for review* snackbar message + + Scenario: Review a Community Library submission as an Administrator and approve it + Given I'm signed in as an Administrator + And I am at the Community Library submission for the channel + When I click the *Review* button + Then I see the *Review submission* side panel + And I can see all the relevant info for the submitted channel + And I can see the *Submission notes* + And I can see that *Submitted* is selected by default in the *Change status* section + When I change the status to *Approved* + And I enter my reasoning in the *Editor's notes* field + And I fill in the *Personal notes* (optional) field + And I click the *Confirm button + Then I see a *Channel status is changing* snackbar message + And after a moment I see a *Submission approved* snackbar message + When I navigate to the *Community Library* page + Then I can see that the channel is shown among the other Community Library channels + + Scenario: Incompatible licenses detected + Given I have published a channel containing resources which cannot be distributed via Kolibri e.g. *All Rights Reserved* + When I click the *Share* drop-down button + And I click the *Submit to Community Library* option + Then I see the *Submit to Community Library* side panel + And I see a red *Incompatible licenses detected* banner informing me that the channel cannot be submitted to the Community Library + And I see that the *Submit for review* button is disabled diff --git a/integration_testing/features/manage-channels/view-channels-with-view-only-access.feature b/integration_testing/features/manage-channels/view-channels-with-view-only-access.feature index f3b14ff8e0..4f8deba4bb 100755 --- a/integration_testing/features/manage-channels/view-channels-with-view-only-access.feature +++ b/integration_testing/features/manage-channels/view-channels-with-view-only-access.feature @@ -2,8 +2,16 @@ Feature: View channels with view-only access Background: Given I am signed in to Studio - And I am at the channel editor page - And I have view-only permissions for the channel + And I am at the channel editor page with view-only permissions for the channel + + Scenario: View a channel with view-only access + When I look at the channel editor page + Then I see the title of the channel to the left + And I see a disabled *View-only* button + And I see a *Share* drop-down to the left of it + And I see a grayed out info text when the channel was last published + And I see a blue *Add* button + And I see the channel topic tree and contents Scenario: Navigate by using the topic tree sidebar When I click on a folder with subfolders and resources diff --git a/integration_testing/features/manage-collections/manage-collections.feature b/integration_testing/features/manage-collections/manage-collections.feature index ae1fcdb9d9..2bf4f08d46 100755 --- a/integration_testing/features/manage-collections/manage-collections.feature +++ b/integration_testing/features/manage-collections/manage-collections.feature @@ -8,7 +8,7 @@ Feature: Manage collections When I click the *New collection* button And I fill in the *Collection name* field And I click the *Create* button - Then I see the *Collections* tab + Then I see the *Collections* page And I see the newly created collection And I see that the number of channels is 0 @@ -16,12 +16,12 @@ Feature: Manage collections When I click the *New collection* button And I click the *Select channels* button Then I see the *Select channels* page - And I am on the *Content library* tab # alternatively I can select *My channels* or the *View-only* tab + And I am on the *Kolibri library* tab # alternatively I can select *My channels* or the *View-only* tab When I select one or several channels And I click the *Finish* button Then I see the the *New collection* screen with the added channels When I click the *Create* button - Then I see the *Collections* tab + Then I see the *Collections* page And I see the newly created collection And I see the correct number of channels in that collection @@ -29,13 +29,13 @@ Feature: Manage collections When I click the *New collection* button And I click the *Select channels* button Then I see the *Select channels* page - And I am on the *Content library* tab # alternatively I can select the *My channels* or *View-only* tab + And I am on the *Kolibri library* tab # alternatively I can select the *My channels* or *View-only* tab When I enter a search term in the *Search for a channel* field And I select one or several channels And I click the *Finish* button Then I see the *New collection* screen with the selected channels When I click the *Create* button - Then I see the *Collections* tab + Then I see the *Collections* page And I see the newly created collection And I see the correct number of channels in that collection @@ -45,14 +45,14 @@ Feature: Manage collections Then I see the collection's details And I can change the collection name When I click the *Select channels* button - Then I am on the *Content library* tab # alternatively I can select the *My channels* or *View-only* tab + Then I am on the *Kolibri library* tab # alternatively I can select the *My channels* or *View-only* tab When I select one or several channels And I click the *Finish* button Then I see the the *New collection* screen with the selected channels When I click the *Remove* button Then I see a *Channel removed* snackbar message When I click the *Save and close* button - Then I see the *Collections* tab + Then I see the *Collections* page And I see the edited collection And I see the number of channels in that collection @@ -61,11 +61,13 @@ Feature: Manage collections And I select the *Delete collection* option Then I see the *Delete collection* modal window When I click the *Delete collection* button - Then I see the *Collections* tab + Then I see the *Collections* page And I see that the deleted collection is no longer displayed Scenario: Learn about collections - When I click the *Learn about collections* link + When I click the *Learn more about collections* link Then I see the *About collections* modal And I see the following info text: A collection contains multiple Kolibri Studio channels that can be imported at one time to Kolibri with a single collection token. You can make a collection by selecting the channels you want to be imported together. You will need Kolibri version 0.12.0 or higher to import channel collections When I click the *Close* button + Then the modal closes + And I am back at the *Collections* page diff --git a/integration_testing/features/manage-account/delete-account.feature b/integration_testing/features/settings/delete-account.feature similarity index 100% rename from integration_testing/features/manage-account/delete-account.feature rename to integration_testing/features/settings/delete-account.feature diff --git a/integration_testing/features/manage-account/view-about-studio-page.feature b/integration_testing/features/settings/view-about-studio-page.feature similarity index 100% rename from integration_testing/features/manage-account/view-about-studio-page.feature rename to integration_testing/features/settings/view-about-studio-page.feature diff --git a/integration_testing/features/manage-account/view-and-edit-account-information.feature b/integration_testing/features/settings/view-and-edit-account-information.feature similarity index 100% rename from integration_testing/features/manage-account/view-and-edit-account-information.feature rename to integration_testing/features/settings/view-and-edit-account-information.feature diff --git a/integration_testing/features/settings/view-and-request-more-storage.feature b/integration_testing/features/settings/view-and-request-more-storage.feature new file mode 100755 index 0000000000..91568c319f --- /dev/null +++ b/integration_testing/features/settings/view-and-request-more-storage.feature @@ -0,0 +1,71 @@ +Feature: View the storage and request more storage space + + Background: + Given I am signed in to Studio + And I am at the *Settings > Storage* page + And I have uploaded some resources to my channels + + Scenario: Review used storage + When I look at the *Settings > Storage* page + Then I see the *% storage used* progress bar + And I see the remaining storage as *NNN MB of NNN MB* + And I see the amount of storage used broken down by resources type + + Scenario: No storage used + Given that I have not uploaded any resources in my channels + When I look under the *% storage used* heading + Then I see that there is 0% storage used + + Scenario: Upgrade storage + When I look at the *Settings > Storage* page + Then I see the *Upgrade storage now* form + And I see a *Purchase additional storage at $15/GB per year* text + And I see a *Storage (GB)* field with default value of 10 + And I see an enabled *Upgrade now* button + When I enter a value in the *Storage (GB)* field + Then I see that the price per year value is updated correctly + When I click the *Upgrade now* button + Then I am redirected to an external checkout page + When I complete the checkout with test card 4242 4242 4242 4242 + And I go back to *Settings > Storage* + Then I see that the size of my storage is increased with the value of the purchased storage + And I see an info text *Storage subscription active* + And I see additional info about the size of storage included in my subscription and when it will renew automatically + And I see a *Manage subscription* link + + Scenario: Cancel an active storage subscription + Given I have an active storage subscription + When I click the *Manage subscription* link + Then I see a page with all the details of my current subscription + And I see a *Cancel subscription* button + When I click the *Cancel subscription* button + And I confirm the cancellation + Then I am brought back to the *Settings > Storage* page + And I see a confirmation that the subscription is cancelled + And I see a message indicating when the subscription will expire and that the storage will be removed after that + + Scenario: Reactivate a cancelled storage subscription + Given I have cancelled my storage subscription + When I click the *Manage subscription* link + Then I see a page with all the details of my current subscription + And I see a *Don't cancel subscription* button + When I click the *Don't cancel subscription* button + And I renew the subscription + Then when I go back to the *Settings > Storage* page I see again the info text *Storage subscription active* + And I see additional info about the size of storage included in my subscription and when it will renew automatically + And I see a *Manage subscription* link + + Scenario: Request more space + When I click the *Open form* link under the *Request more space* section + And I fill in all the space request required fields + And I click the *Send request* button + Then the form disappears + And I see a *Your storage request has been submitted for processing* snackbar message + When after a period of time I open my email + Then I see a *Kolibri Studio storage request from user@user.com* email + + Scenario: Submit more space request with errors + When I leave the required fields empty + And I click the *Send request* button + Then I see a *Please fix N errors below* error message above the form + And I see a *Field is required* text below each required field diff --git a/integration_testing/features/studio-critical-workflows.feature b/integration_testing/features/studio-critical-workflows.feature index dd00bf8c7d..698ebcc9f0 100644 --- a/integration_testing/features/studio-critical-workflows.feature +++ b/integration_testing/features/studio-critical-workflows.feature @@ -90,8 +90,10 @@ Feature: Kolibri Studio critical workflows Then I am at the channel editor page 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* Scenario: Edit channel details Given I am signed in to Studio @@ -228,15 +230,41 @@ Feature: Kolibri Studio critical workflows And I am at the channel editor page And I have write access to the channel And the channel contains unpublished resources or edits - When I click the *Publish* button at the top right corner - Then the *Publish modal* appears - And I see the *Describe what's new in this channel version* field and the *Language* drop-down - When I fill in the required fields - And I click *Publish* - Then I see the *Publishing channel* progress indicator at the top right + When I click the *Publish* button + 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 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 I see the *Published N seconds ago* text - And I receive a confirmation email that 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 channel with incomplete resources Given I am signed in to Studio @@ -425,6 +453,34 @@ Feature: Kolibri Studio critical workflows And I can see the size of each resource types And I can see the *Request more space* section + Scenario: Upgrade storage + When I look at the *Settings > Storage* page + Then I see the *Upgrade storage now* form + And I see a *Purchase additional storage at $15/GB per year* text + And I see a *Storage (GB)* field with default value of 10 + And I see an enabled *Upgrade now* button + When I enter a value in the *Storage (GB)* field + Then I see that the price per year value is updated correctly + When I click the *Upgrade now* button + Then I am redirected to an external checkout page + When I complete the checkout with test card 4242 4242 4242 4242 + And I go back to *Settings > Storage* + Then I see that the size of my storage is increased with the value of the purchased storage + And I see an info text *Storage subscription active* + And I see additional info about the size of storage included in my subscription and when it will renew automatically + And I see a *Manage subscription* link + + Scenario: Cancel an active storage subscription + Given I have an active storage subscription + When I click the *Manage subscription* link + Then I see a page with all the details of my current subscription + And I see a *Cancel subscription* button + When I click the *Cancel subscription* button + And I confirm the cancellation + Then I am brought back to the *Settings > Storage* page + And I see a confirmation that the subscription is cancelled + And I see a message indicating when the subscription will expire and that the storage will be removed after that + Scenario: Submit more space request Given I am signed-in to Kolibri Studio When I fill in all the space request text fields