forked from learningequality/kolibri
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added improvements to Gherkin scenarios
- Loading branch information
1 parent
ae96bcd
commit 7b709e0
Showing
5 changed files
with
91 additions
and
94 deletions.
There are no files selected for viewing
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
61 changes: 31 additions & 30 deletions
61
integration_testing/features/coach/coach-edit-lesson-from-report.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 |
---|---|---|
@@ -1,37 +1,38 @@ | ||
# START testing this scenario with a FRESH DB (make a copy of the current if you want to reuse it later), and use the `kolibri manage importusers your-csv-file.csv` command to import a set of users for this case. | ||
|
||
Feature: Edit lesson details from its lesson report page | ||
Class coaches and normal coaches are able to preview quizzes they create in the plan tab | ||
Feature: Edit lesson details and manage resources from the lesson *Report* tab | ||
Class and facility coaches need to be able to edit details and manage resources directly from the *Report* tab | ||
|
||
Background: | ||
Given I have finished creating a '<lesson>' Lesson A | ||
And I am signed in to Kolibri as a <class coach> or <coach> | ||
And the lesson can be inactive or active and assigned to anyone | ||
Given I am signed in to Kolibri as a class or facility coach | ||
And I have created a <lesson> lesson in a class <class> | ||
And the <lesson> lesson contains one or more resources | ||
And the <lesson> lesson is either inactive, or active and assigned to some learner(s) | ||
|
||
Scenario: Edit lesson details from its report page | ||
When as as a coach I go to Coach and click into the 'Reports' tab | ||
Then I click into Lesson A report | ||
Then I should see a sub-tab with Lesson A's resources | ||
And I should see a sub-tab with a list of the learners who have taken the lesson | ||
When I click the 'options' dropdown button | ||
And I click the 'Edit details' option | ||
Then I should be redirected to a full-screen modal with editable form fields | ||
Scenario: Edit lesson details | ||
When I go to *Coach > '<class>' > Reports > Lessons* tab | ||
And I click to open the <lesson> report | ||
Then I see the *Report* sub-tab with <lesson> resources | ||
And I see the *Learners* sub-tab with a list of the learners who have taken the lesson | ||
When I click the *Options* button | ||
And I select the *Edit details* option | ||
Then I see a full-screen modal *Edit details for '<lesson>'* | ||
When I finish editing the details of the lesson | ||
And I click *Save changes* button | ||
Then I see the <lesson> *Report* sub-tab again | ||
|
||
Scenario: Manage lesson resources | ||
When I go to *Coach > '<class>' > Reports > Lessons* tab | ||
And I click to open the <lesson> report | ||
Then I see the *Report* sub-tab with <lesson> resources | ||
And I see the *Learners* sub-tab with a list of the learners who have taken the lesson | ||
When I click the *Options* button | ||
And I select the *Manage resources* option | ||
Then I see a full-screen modal *Manage resources in '<lesson>'* | ||
When I finish adding to or removing resources from the lesson | ||
And I click the *Finish* button | ||
Then I see the <lesson> *Report* sub-tab again | ||
|
||
Feature: Manage lesson resources from its lesson report page | ||
Class coaches and normal coaches are able to preview quizzes they create in the plan tab | ||
|
||
Background: | ||
Given I have finished creating a '<lesson>' Lesson A | ||
And Lesson A contains one or more resources | ||
And I am signed in to Kolibri as a <class coach> or <coach> | ||
And the lesson can be inactive or active and assigned to anyone | ||
|
||
Scenario: Manage lesson resources from its report page | ||
When as as a coach I go to Coach and click into the 'Reports' tab | ||
Then I click into Lesson A report | ||
Then I should see a sub-tab with Lesson A's resources | ||
And I should see a sub-tab with a list of the learners who have taken the lesson | ||
When I click the 'options' dropdown button | ||
And I click the 'Manage resources' option | ||
Then I should be redirected to a full-screen modal with a resource selection tree | ||
Examples: | ||
| class | lesson | | ||
| Explorers | Count 1 | |
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
58 changes: 30 additions & 28 deletions
58
integration_testing/features/coach/coach-edit-quiz-from-report.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 |
---|---|---|
@@ -1,35 +1,37 @@ | ||
# START testing this scenario with a FRESH DB (make a copy of the current if you want to reuse it later), and use the `kolibri manage importusers your-csv-file.csv` command to import a set of users for this case. | ||
|
||
Feature: Previewing a quiz from the plan tab | ||
Class coaches and normal coaches are able to preview quizzes they create in the plan tab | ||
|
||
Background: | ||
Given I have finished creating a '<quiz>' Quiz A | ||
And I am signed in to Kolibri as a <class coach> or <coach> | ||
And the quiz can be inactive or active and assigned to anyone | ||
|
||
Scenario: Preview Quiz A from the plan tab | ||
When as as a coach I go to Coach and click into the 'Plan' tab | ||
Then I click into Quiz A report | ||
Then I should see a a page with the Quiz A's details | ||
And I should see a list of Quiz A's questions and a preview of each question | ||
And I should see a dropdown button with options 'Edit Quiz', 'Copy Quiz', 'Delete' | ||
Feature: Previewing and editing a quiz from the *Report* tab | ||
Class and facility coaches need to be able to preview and edit details for quizzes directly from the *Report* tab | ||
|
||
Background: | ||
Given I am signed in to Kolibri as a class or facility coach | ||
And I am at *Coach > '<class>' > Reports > Quizzes* tab | ||
And there is a <quiz> quiz in a class <class> | ||
And the <quiz> quiz is either inactive, or active and assigned to some learner(s) | ||
|
||
Feature: Quick-edit a quiz from a quiz report page | ||
Class coaches and normal coaches are able to preview and edit quizzes via a shortcut in the quiz report. This saves them time navigating back to the Plan tab | ||
Scenario: Preview quiz | ||
When I click to open the <quiz> report | ||
Then I see the *Report* sub-tab with the list of learners | ||
And I see the *Difficult questions* sub-tab | ||
When I click the *Options* button | ||
And I select the *Preview* option | ||
Then I see a full-screen modal *Preview of quiz '<quiz>'* | ||
And I see the list of <quiz> quiz questions | ||
When I click the *X* button to close the preview | ||
Then I see the <quiz> *Report* sub-tab again | ||
|
||
Background: | ||
Given I have a created '<quiz>' Quiz A | ||
And I am signed in to Kolibri as a <class coach> or <coach> | ||
And the quiz can be inactive or active and assigned to anyone | ||
Scenario: Edit quiz | ||
When I click to open the <quiz> report | ||
Then I see the *Report* sub-tab with the list of learners | ||
And I see the *Difficult questions* sub-tab | ||
When I click the *Options* button | ||
And I select the *Edit details* option | ||
Then I see a full-screen modal *Edit details for '<quiz>'* | ||
When I finish editing the details of the quiz | ||
And I click *Save changes* button | ||
Then I see the <quiz> *Report* sub-tab again | ||
|
||
Scenario: Shortcut edit Quiz A from its report | ||
When I click into the Reports tab | ||
And I click into the 'Quizzes' sub-tab | ||
Then I click into Quiz A report | ||
And I should see a dropdown button with options 'Preview' and 'Edit details' | ||
When I click 'Preview' | ||
Then I should see a list of Quiz A's questions | ||
When I click "Edit details" | ||
Then I should be redirected to a full-screen modal with editable form fields | ||
Examples: | ||
| class | quiz | | ||
| Explorers | Count 1 | |
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