From 29ac94f1dc97e64a304a040933b455e74a487bce Mon Sep 17 00:00:00 2001 From: Peter Cenov Date: Fri, 1 May 2026 17:27:37 +0300 Subject: [PATCH 1/2] new scenarios and corrections --- .../view-and-request-more-storage.feature | 32 ------ .../manage-channels/publish-channel.feature | 2 +- ...ubmit-channel-to-community-library.feature | 102 ++++++++++++++++++ .../delete-account.feature | 0 .../view-about-studio-page.feature | 0 .../view-and-edit-account-information.feature | 0 .../view-and-request-more-storage.feature | 71 ++++++++++++ .../studio-critical-workflows.feature | 28 +++++ 8 files changed, 202 insertions(+), 33 deletions(-) delete mode 100755 integration_testing/features/manage-account/view-and-request-more-storage.feature create mode 100755 integration_testing/features/manage-channels/submit-channel-to-community-library.feature rename integration_testing/features/{manage-account => settings}/delete-account.feature (100%) rename integration_testing/features/{manage-account => settings}/view-about-studio-page.feature (100%) rename integration_testing/features/{manage-account => settings}/view-and-edit-account-information.feature (100%) create mode 100755 integration_testing/features/settings/view-and-request-more-storage.feature 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/publish-channel.feature b/integration_testing/features/manage-channels/publish-channel.feature index 86e965286f..4bcddd49d6 100755 --- a/integration_testing/features/manage-channels/publish-channel.feature +++ b/integration_testing/features/manage-channels/publish-channel.feature @@ -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 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..c33032c546 --- /dev/null +++ b/integration_testing/features/manage-channels/submit-channel-to-community-library.feature @@ -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 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 f321872b7f..fd08788f11 100644 --- a/integration_testing/features/studio-critical-workflows.feature +++ b/integration_testing/features/studio-critical-workflows.feature @@ -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 From 899f4d0f9e2a3de96b41d909b6aee71b95b908ce Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Fri, 1 May 2026 14:33:03 +0000 Subject: [PATCH 2/2] [pre-commit.ci lite] apply automatic fixes --- .../submit-channel-to-community-library.feature | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 index c33032c546..132814b78f 100755 --- a/integration_testing/features/manage-channels/submit-channel-to-community-library.feature +++ b/integration_testing/features/manage-channels/submit-channel-to-community-library.feature @@ -62,7 +62,7 @@ Feature: Submit a channel to the Community Library 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 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 @@ -96,7 +96,7 @@ Feature: Submit a channel to the Community Library 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 + Then I can see that the channel is shown among the other Community Library channels Scenario: Incompatible licenses detected. Given TODO