Skip to content
Open
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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
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 TODO
Original file line number Diff line number Diff line change
@@ -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
28 changes: 28 additions & 0 deletions integration_testing/features/studio-critical-workflows.feature
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,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
When I fill in all the space request text fields
And I click the *Send request* submit button
Expand Down
Loading