-
Notifications
You must be signed in to change notification settings - Fork 699
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
Additional gherkin scenarios for the options.ini file #9130
Merged
radinamatic
merged 3 commits into
learningequality:release-v0.15.x
from
pcenov:optionsini-scenarios
Feb 28, 2022
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
82 changes: 82 additions & 0 deletions
82
...ion_testing/features/super-admin/commands/super-admin-customizes-kolibri-settings.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
Feature: Super admin customizes the Kolibri settings with the options.ini file | ||
Super admin needs to be able to customize the Kolibri settings by modifying the options.ini file | ||
|
||
Background: | ||
Given that the Kolibri server is not running | ||
And I have opened the "options.ini" file which is located inside the ".kolibri" folder | ||
And there are the following sections: [Cache], [Database], [Server], [Paths], [Urls], [Deployment], [Python], [Tasks], [Learn] | ||
|
||
Scenario: Change the default HTTP port | ||
When I add "HTTP_PORT = <port number>" under the [Deployment] section | ||
And I save my changes | ||
And I run the "kolibri start" command in the terminal or command prompt | ||
Then I see that the Kolibri server is running at <port number> port | ||
|
||
Scenario: Configure Kolibri to display a specific set of languages | ||
When I add "LANGUAGES = '<language intl_code>','<language intl_code>'" under the [Deployment] section | ||
And I save my changes | ||
And I run the "kolibri start" command in the terminal or command prompt | ||
And I go to the *Sign in* page and click the language selector | ||
Then I see only the specified languages in the language selector modal window | ||
And I can select a language and see the Kolibri UI displayed in the selected language | ||
|
||
Scenario: Change the default Content directory | ||
When I add "CONTENT_DIR = <content folder>" under the [Paths] section | ||
And I save my changes | ||
And I run the "kolibri manage content movedirectory <destination>" command in the terminal or command prompt | ||
Then I can see the content moved in the destination folder | ||
|
||
Scenario: Change the default central content base URL | ||
When I add "CENTRAL_CONTENT_BASE_URL = <content base URL>" under the [Urls] section | ||
And I save my changes | ||
And I run the "kolibri start" command in the terminal or command prompt | ||
And I go to *Device>Channels* | ||
And I click the *Import* button | ||
Then I see the *Select a source* modal | ||
And I see the *Kolibri Studio (online)* option selected | ||
When I click the *Continue* button | ||
Then I see the *Select resources for import* page | ||
And I can see all the available resources | ||
|
||
Scenario: Change the default Data portal syncing base URL | ||
Given my facility is registered to a Project on Kolibri Data Portal | ||
When I add "DATA_PORTAL_SYNCING_BASE_URL = <data portal URL>" under the [Urls] section | ||
And I save my changes | ||
And I run the "kolibri start" command in the terminal or command prompt | ||
And I go to *Device > Facilities* | ||
And I click the *Sync* button | ||
Then I see the *Select a source* modal | ||
When I select *Kolibri Data Portal* | ||
And I click *Continue* | ||
Then I see the list of facilities | ||
And I see a *Syncing* message under <facility> | ||
And I see an indeterminate spinner | ||
And I see there is a new task in *Device > Tasks* | ||
When the <facility> is done syncing | ||
Then I see a message under the <facility> *Last synced: just now* | ||
|
||
Scenario: Enable custom channel navigation | ||
When I add "ENABLE_CUSTOM_CHANNEL_NAV = True" under the [Learn] section | ||
And I save my changes | ||
And I run the "kolibri start" command in the terminal or command prompt | ||
And I go to *Device>Channels* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Idem for separation here. |
||
And I click the *Import* button | ||
Then I see the *Select a source* modal | ||
And I see the *Kolibri Studio (online)* option selected | ||
When I click the *Continue* button | ||
Then I see the *Select resources for import* page | ||
And I can see all the available resources | ||
When I click *Import with token* | ||
Then I see the *Enter channel token* modal | ||
When I input a token for a channel with custom navigation such as "bovir-dubov" | ||
And I click *Continue* | ||
Then I see the imported channel | ||
When I go to the *Learn>Library* page | ||
And I click on the channel with custom navigation | ||
Then I am at the *Browse channel* modal window | ||
And I can interact with the contents of the channel | ||
|
||
|
||
Examples: | ||
| port number | language intl_code | content folder | content fallback folder | content base URL | | ||
| 8081 | en | C:\Users\IEUser\.kolibri\content | C:\Users\IEUser\.kolibri\| https://hotfixes.studio.learningequality.org/ | |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We usually separate this so,
Device > Channels
, right?