Skip to content

Gherkin scenarios updates and corrections #4902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: unstable
Choose a base branch
from
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
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ Feature: Explore without an account
Scenario: Explore without an account
When I click the *Explore without an account* link
Then I see the *Content Library* page with available public channels
And I can filter the search results
And I can view or download the channel summary
And I can filter the search results by keyword, language, license, format, starred status, resources for coaches, captions or subtitles
When I click on a channel card
Then I can see the channel's details
And I can view or download the channel summary
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Feature: Reset your password

Scenario: Request a link to reset my password
When I click the *Forgot your password?* link
Then I see a page with option to enter my email address
Then I see the *Reset your password* page with option to enter my email address
When I type an existing valid email address in the *Email* field
And I press the *Submit* button
Then I see a message that the instructions are sent
Expand All @@ -18,7 +18,7 @@ Feature: Reset your password
Given I've requested and received an email with a link to reset my password
When I click the link in the email
Then I see a page with a *Reset your password* form
And I fill in the *New password* field
When I fill in the *New password* field
And I fill in the *Confirm password* field with the same password
And I press the *Submit* button
Then I see the following message: Password reset successfully
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Sign in to Studio
And I am at Studio's sign-in page
And I have already registered with my email

Scenario: Sign in to Studio
Scenario: Sign in to Studio using valid credentials
When I fill in my email
And I fill in my password
And I click the *Sign in* button
Expand All @@ -17,8 +17,13 @@ Feature: Sign in to Studio
And I click the *Sign in* button
Then I see the following validation message above the form: *Email or password is incorrect*

Scenario: See validation messages for the required fields
Scenario: See error notification for invalid email
When I fill in an invalid email such as test@
And I click the *Sign in* button
Then I see the following validation message under the email field: *Please enter a valid email*

Scenario: See validation messages for the empty required fields
When I leave one or both of the *Email* and *Password* fields empty
And I click the *Sign in* button
Then I see the fields colored in red
And I see a *Field is required* message under each empty field
And I see a *This field is required* message under each empty field
8 changes: 4 additions & 4 deletions integration_testing/features/common/change-language.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Feature: Change language

Scenario: Change language when you are not signed-in
Given I am not signed-in to Studio
And I am on the Studio home page
And I am at Studio's sign-in page
When I click on one of the available languages
Then the language interface changes to the selected language
And the selected language is no longer clickable
Expand All @@ -13,16 +13,16 @@ Feature: Change language
And I have clicked the *Explore without an account link*
When I click on the user profile icon
And I click *Change language*
Then I see a *Change language* modal window displayed with several languages to choose from
Then I see a *Change language* modal window with the available languages
When I click on a language which is not currently selected
And I click the *Confirm* button
Then the interface language changes to the selected language

Scenario: Change language as a signed-in user
Scenario: Change the language as a signed-in user
Given I am signed-in to Studio
And I click the user profile icon
When I click *Change language*
Then I see a *Change language* modal window displayed with several languages to choose from
Then I see a *Change language* modal window with the available languages
When I click on a language which is not currently selected
And I click the *Confirm* button
Then the interface language changes to the selected language
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ User needs to be able to open and close the sidebar menu and the user menu

Background:
Given I am signed in to Studio
And I am on any of the tabs (*My Channels*, *Starred*, *View only*, *Content Library*, or *Collections*)

Scenario: Open and close the sidebar menu
When I click the hamburger menu button in the upper left screen corner
Then I see the sidebar menu
And I can select any of the options inside
And I can see the following options: *Channels*, *Settings*, *Change language*, *Help and support*, *Sign out*, the LE logo, *© 2025 Learning Equality", *Give feedback*
And I can click any of the options inside
When I click the *X* button, or anywhere on the browser screen
Then I don't see the sidebar menu anymore

Scenario: Open and close the user menu
When I click the user menu button in the upper right screen corner
Then I see the user menu
And I can select any of the options inside
And I can see the following options: *Settings*, *Change language*, *Help and support*, *Sign out*
And I can click any of the options inside
When I click the user menu button again, or anywhere on the browser screen
Then I don't see the user menu anymore
Then I don't see the user menu anymore

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions integration_testing/features/manage-account/report-issue.feature

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Feature: About Studio

Background:
Given I am signed in to Studio
And I am at *Settings > About Studio* page

Scenario: Read the available info and follow the links
When I look at the page
Then I see the following sections: *Kolibri Studio resources*, *About Kolibri Studio*, *Best practices* and *Notable issues*
When I click on any of the provided links
Then I can go to the linked page
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Feature: View and edit the account information

Background:
Given I am signed in to Studio
And I am at the *Settings > Account* page

Scenario: View the account information
When I look at the page
Then I see the *Basic information* section with, *Username*, *Full name* and *Password*
And I see the *API token* section with the token
And I see the *Export account data* section with *Export data* button
And I see the *Delete account* section

Scenario: Edit the full name
When I click the *Edit full name* link next to my username
Then I see the *Edit full name* modal
When I make changes to my full name
And I click the *Save changes* button
Then the modal closes
And I see a *Changes saved* snackbar

Scenario: Change the password
When I click on the *Change password* link
Then I see the *Change password* modal
When I enter a new password
And I click the *Save changes* button
Then the modal closes
And I see a *Changes saved* snackbar

Scenario: Copy the API token
When I click the copy button in the token text field
Then I see a *Token copied* snackbar

Scenario: Export account data
When I click the *Export data* button
Then I see the *Data export started* modal
When I click the *OK* button
Then the modal closes

Scenario: View the exported data
When after a period of time I check the Inbox of my email account registered at Studio
Then I see an email with the exported account data as an attachment
And I can view the exported account data
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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 [email protected]* 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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,24 @@ Feature: Add a channel to the *Starred* tab
When I click and open the *Starred* tab
Then I see that the channel is displayed among the starred channels

Scenario: Unstar a channel
Scenario: Remove a channel from the starred channels
Given I am on *My Channels*, *View only*, or *Public* tabs
And I see a channel that is starred (black star)
When I click the *Remove from starred channels* button for the channel
Then I see that the channel's *Remove from starred channels* button is now white
And I see a message that the channel was removed from the starred channels
When I click and open the *Starred* tab
Then I see the list of starred channels
But I don't see the unstarred channel on the list

Scenario: Remove channel directly from the *Starred* tab
Given I am on the *Starred* tab
And I see a starred channel
When I click the *Remove from starred channels* button for the channel
Then I don't see the unstarred channel any more
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
And I've selected the *Starred* checkbox
When I click on the star button of a starred channel.
Then I should see a message that the channel was removed from the starred channels
And the channel should no longer be displayed in the list with the filtered channels
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 @@ -2,18 +2,19 @@ Feature: Create a channel

Background:
Given I am signed in to Studio
And I am on the *My Channels* tab
And I am at *My Channels* tab

Scenario: Create a channel
Scenario: Create a new channel
When I click the *New channel* button
Then I see the *New channel* page
When I enter channel name <channel_name>
And I enter channel description <channel_description>
And I select a language <language>
And I upload the image file as a channel thumbnail
When I upload an image file as a channel thumbnail (optional)
And I enter a channel name
And I select a language
And I enter channel description (optional)
And I fill in the default copyright fields (optional)
And I click the *Create* button
Then I see the channel <channel_name> on *My Channels* list

Examples:
| channel_name | channel_description | language |
| ck-12 | sample channel | english |
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 blue *Add* button
Loading