Skip to content

Commit

Permalink
Merge pull request #5 from mrpau/0.14-super-admin-gherkins
Browse files Browse the repository at this point in the history
Some minor updates to your PR.
  • Loading branch information
radinamatic authored Jun 26, 2020
2 parents 4df83ba + f9a9797 commit 585fa60
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Feature: Super Admin deletes facility form the command line
Feature: Super Admin deletes facility from the command line
Super Admin needs to be able to delete a facility and all its associated data from the device

# Make sure you have more than 1 facility on the device before executing the command!

Background:
Given I have super admin account for Kolibri
And there is a <facility> facility on the device
And I can run commands in the Terminal or the command prompt
And I can run 'kolibri manage' commands in the Terminal or the command prompt

Scenario: Execute the deletefacility command and review that facility has been deleted
When I run the 'kolibri manage deletefacility' command in the Terminal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Feature: Load Kolibri with content fallback directories

# KOLIBRI_CONTENT_FALLBACK_DIRS is a semi-colon (;) separated list of directories that contain directories with Kolibri content. This is used for distributions like Endless to provide system content packages that are automatically loaded on first start-up.

# Follow the steps in the 'Background' to prepare a the VM
# Follow the steps in the 'Background' to prepare the VM

Background:
Given that there is an 'options.ini' file in the Kolibri home folder
Expand All @@ -14,6 +14,6 @@ Feature: Load Kolibri with content fallback directories

Scenario: Running Kolibri for the first time with content fallback dirs
When I open Kolibri in the browser for the first time
And I complete the "SUper admin goes through the 'Quick Start' setup wizard" scenario
And I complete the "Super admin goes through the 'Quick Start' setup wizard" scenario
When I am redirected to *Device > Channels*
Then I see all the channels that exist in the directories specified in 'CONTENT_FALLBACK_DIRS'
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Feature: Sync all to Kolibri Data Portal
When connected to the internet, users that are registered to a Project in Kolibri Data Portal should be able to sync all facilities on their device at one time
When connected to the internet, users that are registered to a Project in Kolibri Data Portal (KDP) should be able to sync all facilities on their device at one time

# Create at least 2 facilities and go through the scenarios in order, beginning with them not beiing registered on KDP

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,25 @@ Feature: Admin changes facility settings
Then I see the *Create an account* button on the sign-in page

Scenario: Allow simplified sign-in
Given the *Require password for learners* checkbox is unchecked
And the *Allow learners to change their password when signed in* checkbox is disabled (grayed out)
When I check the *Require password for learners* checkbox
Then I see the *Allow learners to change their password when signed in* checkbox is now enabled
Given the *Require password for learners* checkbox is checked
And the *Allow learners to change their password when signed in* checkbox is enabled
When I uncheck the *Require password for learners* checkbox
Then I see the *Allow learners to change their password when signed in* checkbox is now disabled (grayed out)
When I click the *Save changes* button
And I sign out
Then I don't see the *Password* field on the sign-in page
And I'm able to sign-in as learner <learner> without a password

Scenario: Allow password change
Scenario: Allow password change for learners
Given the *Require password for learners* checkbox is checked
And the *Allow learners to change their password when signed in* checkbox is checked
When I uncheck the *Allow learners to change their password when signed in* checkbox
And the *Allow learners to change their password when signed in* checkbox is disabled (grayed out)
When I check the *Allow learners to change their password when signed in* checkbox
And I click the *Save changes* button
And I sign out
And I sign in as learner <learner>
And I (as learner <learner>) open the user menu
And I select *Profile*
Then I (as learner <learner>) don't see the *Change password* link
Then I (as learner <learner>) can see the *Change password* link



Expand All @@ -67,7 +67,7 @@ Feature: Admin changes facility settings
And I click the *Save changes* button
When I go to *Learn > Channels* page
And browse any channel's topics until I open an single resource
Then I see the *Download content* button
Then I see the *Download resource* button

Examples:
| full_name | username | password |
Expand Down

0 comments on commit 585fa60

Please sign in to comment.