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

Add Auto-saving and Search to Lesson Resource Selection #4253

Merged
merged 14 commits into from Sep 20, 2018
@@ -1,10 +1,10 @@
Feature: Admin change facility settings
Admin needs to be able to change the user sign-in/up, self-edit, and content download options according to the needs of the facility
Admin needs to be able to change the user sign-in/up, self-edit, and content download options according to the needs of the facility
indirectlylit marked this conversation as resolved.
Show resolved Hide resolved

Background:
Given I am signed in to Kolibri as admin user
And I am on *Facility > Settings* page
And there are learner and coach user accounts created in the facility
And there are learner and coach user accounts created in the facility

Scenario: Allow username edit
Given the *Allow learners and coaches to edit their username* checkbox is checked
Expand Down Expand Up @@ -53,4 +53,4 @@ Examples:
| full_name | username | password |
| Pinco P. | coach | coach |
| Neela R. | ccoach | ccoach |
| John C. | learner | learner |
| John C. | learner | learner |
@@ -1,16 +1,16 @@
Feature: Admin change profile information
Admin needs to be able to change their own profile information
Admin needs to be able to change their own profile information

Background:
Given I am signed in to Kolibri as an admin user
And I am on the *User > Profile* page

Scenario: Admin changes username and full name
When I change my full name
And I change my username
And if my changes are valid (I did not leave the fields empty)
And I click the “Save changes” button
Then I see the *Profile details updated* inline notification
When I change my full name
And I change my username
And if my changes are valid (I did not leave the fields empty)
And I click the “Save changes” button
Then I see the *Profile details updated* inline notification
And I see the new full name and username on the profile page
And I see the new username in the user menu

Expand All @@ -21,4 +21,4 @@ Feature: Admin change profile information
And I re-enter the new password
And if my changes are valid (I did not leave the fields empty, or entered two different passwords)
And I click the “Update” button
Then I see the *Password updated* snackbar notification
Then I see the *Password updated* snackbar notification
4 changes: 2 additions & 2 deletions integration_testing/features/admin/admin-create-class.feature
@@ -1,5 +1,5 @@
Feature: Admin create classes
Admin needs to be able create classes for each facility
Admin needs to be able create classes for each facility

Background:
Given I am signed in to Kolibri as admin user
Expand All @@ -16,4 +16,4 @@ Feature: Admin create classes
Examples:
| class |
| Primera |
| Segunda |
| Segunda |
4 changes: 2 additions & 2 deletions integration_testing/features/admin/admin-create-users.feature
@@ -1,5 +1,5 @@
Feature: Admin create users
Admin needs to be able to create user accounts for each role in the facility
Admin needs to be able to create user accounts for each role in the facility

Background:
Given I am signed in to Kolibri as admin user
Expand Down Expand Up @@ -65,4 +65,4 @@ Examples:
| Pinco P. | coach | coach |
| Neela R. | ccoach | ccoach |
| John C. | learner | learner |
| Carrie W. | admin2 | admin2 |
| Carrie W. | admin2 | admin2 |
4 changes: 2 additions & 2 deletions integration_testing/features/admin/admin-delete-class.feature
@@ -1,5 +1,5 @@
Feature: Admin create classes
Admin needs to be able to delete classes from the facility
Admin needs to be able to delete classes from the facility

Background:
Given I am signed in to Kolibri as admin user
Expand All @@ -17,4 +17,4 @@ Feature: Admin create classes
Examples:
| class |
| Primera |
| Segunda |
| Segunda |
6 changes: 3 additions & 3 deletions integration_testing/features/admin/admin-delete-user.feature
@@ -1,5 +1,5 @@
Feature: Admin delete users
Admin needs to be able to delete users from the facility
Admin needs to be able to delete users from the facility

Background:
Given I am signed in to Kolibri as admin user
Expand All @@ -11,11 +11,11 @@ Feature: Admin delete users
Then I see *Delete user * modal
When I click the *Delete* button
Then the modal closes
And I see the *Facility > Users* page again
And I see the *Facility > Users* page again
# no confirmation that the user has been deleted
When I search for the deleted user in the search field
Then I see the *No users match the filter* result

Scenario: Try (and fail) to delete your own account
When I click on *Manage* button for my own account
Then I see that the *Delete* option is not active
Then I see that the *Delete* option is not active
3 changes: 1 addition & 2 deletions integration_testing/features/admin/admin-edit-user.feature
@@ -1,5 +1,5 @@
Feature: Admin edit users
Admin needs to be able to edit user's full name and username, reset the passwords, change the user types, and delete them from the facility
Admin needs to be able to edit user's full name and username, reset the passwords, change the user types, and delete them from the facility

Background:
Given I am signed in to Kolibri as admin user
Expand Down Expand Up @@ -48,4 +48,3 @@ Feature: Admin edit users
And I click the *Save* button
Then the modal closes
And I see the *Facility > Users* page again # no confirmation that the password has been reset

@@ -1,5 +1,5 @@
Feature: Admin enroll learners and assign coaches to classes
Admin needs to be able to enroll learners and assign coaches to classes in the facility
Admin needs to be able to enroll learners and assign coaches to classes in the facility

Background:
Given I am signed in to Kolibri as admin user
Expand Down Expand Up @@ -34,4 +34,4 @@ Feature: Admin enroll learners and assign coaches to classes
Examples:
| class |
| Primera |
| Segunda |
| Segunda |
4 changes: 2 additions & 2 deletions integration_testing/features/admin/admin-export-data.feature
@@ -1,5 +1,5 @@
Feature: Admin export usage data
Admin needs to be able to export session and summary logs for the facility
Admin needs to be able to export session and summary logs for the facility

Background:
Given I am signed in to Kolibri as an admin user
Expand All @@ -18,4 +18,4 @@ Feature: Admin export usage data
Then I see *Save as* window
When I enter the name and loaction for the CSV file
And I click the *Save* button
Then I see the summary logs file saved on my local drive
Then I see the summary logs file saved on my local drive
4 changes: 2 additions & 2 deletions integration_testing/features/admin/admin-find-user.feature
@@ -1,5 +1,5 @@
Feature: Admin find users
Admin needs to be able to search for and find users
Admin needs to be able to search for and find users

Background:
Given I am signed in to Kolibri as admin user
Expand Down Expand Up @@ -27,4 +27,4 @@ Examples:
| full_name | username | role |
| Pinco P. | coach | Coaches |
| John C. | learner | Learners |
| Carrie W. | admin2 | Admins |
| Carrie W. | admin2 | Admins |
@@ -1,5 +1,5 @@
Feature: Admin import content
Admin who has been granted the device permissions needs to be able to import content channels on the device
Admin who has been granted the device permissions needs to be able to import content channels on the device

Background:
Given I am signed in to Kolibri as admin user
Expand All @@ -9,4 +9,4 @@ Feature: Admin import content
When I open the sidebar
Then I can click on *Device*
And I see the *Device > Content* page
And I can click on *Import* button and select channels to import
And I can click on *Import* button and select channels to import
8 changes: 4 additions & 4 deletions integration_testing/features/admin/admin-sign-in.feature
@@ -1,6 +1,6 @@
Feature: Admin sign-in
Facility admins should be able to sign in to access Kolibri
If the admin account is registered correctly, they should arrive at the Facility > Classes page upon sign-in
Facility admins should be able to sign in to access Kolibri
If the admin account is registered correctly, they should arrive at the Facility > Classes page upon sign-in

Background:
Given that I am on the Kolibri sign-in page
Expand All @@ -9,9 +9,9 @@ Feature: Admin sign-in
Scenario: Sign-in
When I fill out my username <username>
And I fill out my password <password>
And I click the *Sign in* button
And I click the *Sign in* button
Then I am signed in and I can see the *Facility > Classes* page

Examples:
| username | password |
| admin | admin |
| admin | admin |
8 changes: 4 additions & 4 deletions integration_testing/features/admin/admin-sign-out.feature
@@ -1,15 +1,15 @@
Feature: Admin sign-out
Admin need to be able to sign out when finished using Kolibri
Admin need to be able to sign out when finished using Kolibri

Background:
Given that I am signed in to Kolibri

Scenario: Sign-out from user menu
When I select the user menu in the top right hand corner
And I click the *Sign out* button
And I click the *Sign out* button
Then I am signed out and back on the sign-in page

Scenario: Sign-out from sidebar
When I open the sidebar from the top left icon
And I click *Sign out*
Then I am signed out and back on the sign-in page
And I click *Sign out*
Then I am signed out and back on the sign-in page
@@ -1,5 +1,5 @@
Feature: Class coach view
Class coaches need to be able to review the progress in class(es) they are assigned to, but not other classes in the facility.
Class coaches need to be able to review the progress in class(es) they are assigned to, but not other classes in the facility.

Background:
Given I am signed in to Kolibri as a class coach
Expand Down Expand Up @@ -28,7 +28,7 @@ Feature: Class coach view
When I click the subtopic <subtopic>
Then I see the *Classes > '<class>' > Channels > '<channel>' > '<topic>' > '<subtopic>'* breadcrumb
And I see all the content items of the subtopic <subtopic> of the <topic> topic for the channel <channel>
And I see *Avg. exercises progress* progress bar(s) for the excercise content items
And I see *Avg. exercises progress* progress bar(s) for the excercise content items
And *Avg. resource progress* progress bar(s) for the resource content items
When I click the <content_item> content item
Then I see the *Classes > '<class>' > Channels > '<channel>' > '<topic>' > '<subtopic>' > '<content_item>'* breadcrumb
Expand Down
@@ -1,5 +1,5 @@
Feature: Class coach view
Class coaches need to be able to review the progress in class(es) they are assigned to, but not other classes in the facility.
Class coaches need to be able to review the progress in class(es) they are assigned to, but not other classes in the facility.

Background:
Given I am signed in to Kolibri as a class coach
Expand Down Expand Up @@ -28,9 +28,9 @@ Feature: Class coach view
When I click the subtopic <subtopic>
Then I see the *Classes > '<class>' > Learners > '<full_name>' > '<channel>' > '<topic>' > '<subtopic>'* breadcrumb
And I see all the content items of the subtopic <subtopic> of the <topic> topic for the channel <channel>
And I see *Avg. exercises progress* progress bar(s) for the excercise content items
And I see *Avg. exercises progress* progress bar(s) for the excercise content items
And *Avg. resource progress* progress bar(s) for the resource content items
But I cannot click the individual content items
But I cannot click the individual content items

Examples:
| full_name | class | channel | topic | subtopic |
Expand Down
@@ -1,5 +1,5 @@
Feature: Coach activate exams
Coaches need to activate exams in order for learners to gain access and start submitting them
Coaches need to activate exams in order for learners to gain access and start submitting them

Background:
Given I am signed in to kolibri as coach user
Expand All @@ -19,4 +19,4 @@ Feature: Coach activate exams

Examples:
| exam_title |
| First quarter |
| First quarter |
5 changes: 2 additions & 3 deletions integration_testing/features/coach/coach-assign-exam.feature
@@ -1,12 +1,11 @@
Feature: Coach assign exams
Coach needs to be able to assign exams to one or more groups, as the exam by default is assigned to the entire class
Coach needs to be able to assign exams to one or more groups, as the exam by default is assigned to the entire class

Background:
Given there are 2 or more learner groups
And I am signed in to Kolibri as a coach user
And I am on the *Coach > Exams* page
And I see the exam <exam_title>


Scenario: Coach assigns exam to group(s)
When I click the exam <exam_title>
Expand All @@ -22,4 +21,4 @@ Feature: Coach assign exams

Examples:
| exam_title |
| First quarter |
| First quarter |
@@ -1,17 +1,17 @@
Feature: Coach change profile information
Coach needs to be able to change their own profile information
Coach needs to be able to change their own profile information

Background:
Given I am signed in to Kolibri as a coach user
And I am on my user *Profile* page
And I have permission to edit my full name and username

Scenario: Coach changes username and full name
When I change my full name
And I change my username
And if my changes are valid (I did not leave the fields empty)
And I click the “Save changes” button
Then I see the *Profile details updated* inline notification
When I change my full name
And I change my username
And if my changes are valid (I did not leave the fields empty)
And I click the “Save changes” button
Then I see the *Profile details updated* inline notification
And I see the new full name and username on the profile page
And I see the new username in the user menu

Expand All @@ -22,4 +22,4 @@ Feature: Coach change profile information
And I re-enter the new password
And if my changes are valid (I did not leave the fields empty, or entered two different passwords)
And I click the “Update” button
Then I see the *Password updated* snackbar notification
Then I see the *Password updated* snackbar notification
6 changes: 3 additions & 3 deletions integration_testing/features/coach/coach-copy-lesson.feature
@@ -1,5 +1,5 @@
Feature: Coach copy lesson
Coaches need to be able to copy lessons to the same or a different class, and assign it to different groups or an entire class
Coaches need to be able to copy lessons to the same or a different class, and assign it to different groups or an entire class

Background:
Given I am signed in to Kolibri as coach user
Expand Down Expand Up @@ -31,15 +31,15 @@ Feature: Coach copy lesson
And I select *Copy lesson* option
Then I see the *Copy lesson* modal
And I see *'<class>' (current class)* is selected
When I select class <class2>
When I select class <class2>
And I click *Continue* button
Then the modal content changes and asks to select recipients
And I see *Entire class* selected
When I select group <group>
And I click *Copy* button
Then the modal closes
And the snackbar confirmation appears
When open the sidebar
When open the sidebar
And I click on *Coach*
And I click class <class2>
And I click on *Lessons* tab
Expand Down
4 changes: 2 additions & 2 deletions integration_testing/features/coach/coach-create-exams.feature
@@ -1,5 +1,5 @@
Feature: Coach create exams
Coach needs to be able to create exams from existing content
Coach needs to be able to create exams from existing content

Background:
Given I am signed in to Kolibri as a coach user
Expand Down Expand Up @@ -45,4 +45,4 @@ Scenario: Coach creates an exam by browsing to topic to pull questions from

Examples:
| exam_title | number_of_question | exercises_questions | channel | topic |
| First Quarter | 5 | Mathématiques | Khan Academy (English) | Recognize fractions |
| First Quarter | 5 | Mathématiques | Khan Academy (English) | Recognize fractions |
4 changes: 2 additions & 2 deletions integration_testing/features/coach/coach-create-group.feature
@@ -1,5 +1,5 @@
Feature: Coach create groups
Coach needs to be able create groups to support different learning needs and speeds
Coach needs to be able create groups to support different learning needs and speeds

Background:
Given I am signed in to Kolibri as a coach user
Expand All @@ -18,4 +18,4 @@ Feature: Coach create groups
Examples:
| group |
| Team A |
| Team B |
| Team B |
@@ -1,5 +1,5 @@
Feature: Coach create lessons
Coach need to be able to create lessons from existing content
Coach need to be able to create lessons from existing content

Background:
Given I am signed in to Kolibri as a coach user
Expand All @@ -26,8 +26,8 @@ Feature: Coach create lessons
When I click on *back arrow* button
Then I see the *Select resources* page again
When I check the resource(s) checkbox
Then I see the *Total resources selected* count changed
When I click *Save* button
Then I see the *Total resources selected* count changed
When I click the *Exit* button on the *Manage resources* header
Then *Select resources* page closes
And I see the added resources on the <title> lesson page

Expand Down