Skip to content

Commit

Permalink
Merge pull request #11916 from pcenov/016-gherkin-updates-3
Browse files Browse the repository at this point in the history
Gherkin updates
  • Loading branch information
radinamatic authored Mar 22, 2024
2 parents 8c75103 + eb90967 commit efcaa7c
Show file tree
Hide file tree
Showing 105 changed files with 1,208 additions and 766 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,3 @@ Feature: Admin creates classes
And I click *Save* button
Then the modal closes
And I see the new <class> class on the *Classes* page

Examples:
| class |
| Primera |
| Segunda |
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,3 @@ Feature: Admin can delete classes
Then the modal closes
# no confirmation that the class has been deleted
And I don't see the deleted class on the *Classes* page anymore

Examples:
| class |
| Primera |
| Segunda |
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,3 @@ Feature: Admin enrolls learners and assign coaches to classes
When I click *Remove* button
Then the modal closes
And I don't see <coach> user account listed under *Coaches*

Examples:
| class |
| Primera |
| Segunda |
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,3 @@ Feature: Admin bulk export of users and classrooms
When I click the top left X button to close the modal
And I click on the *Classes* top menu
Then I see that classes, enrolled learners and assigned coaches now match what was in the CSV

# Example CSV file (for the first row, texts not inside parenthesis may be translated) :
Username (USERNAME),Password (PASSWORD),Full name (FULL_NAME),User type (USER_TYPE),Identifier (IDENTIFIER),Birth year (BIRTH_YEAR),Gender (GENDER),Enrolled in (ENROLLED_IN),Assigned to (ASSIGNED_TO)
jkrowling,,Too bad to be here,STUDENT,Potter1,1899,FEMALE,Literature 0,
ignored_data,,You are not a coach,LEARNER,,,,,Ignored class
new_coach,,Miguel de Cervantes,COACH,Sancho1,1969,MALE,,Literature 1
student1,,William Shakespeare,LEARNER,Otelo1,2001,MALE,Literature 1,
student2,,Agatha Christie,LEARNER,Poirot1,1999,FEMALE,"Literature 1,Chemistry2",
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,3 @@ Feature: Admin changes facility settings
Then I see the *Explore without account* link on the sign-in page
When I click *Explore without account*
Then I see the *Learn > Library* page


Examples:
| full_name | username | password |
| Pinco P. | coach | coach |
| Neela R. | ccoach | ccoach |
| John C. | learner | learner |
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,3 @@ Feature: Admin creates users
And I see the the snackbar confirmation that the user has been created
And I see the new user on the *Facility > Users* page
And I see the *Admin* label besides their name

Examples:
| full_name | username | password |
| Pinco P. | coach | coach |
| Neela R. | ccoach | ccoach |
| John C. | learner | learner |
| Carrie W. | admin2 | admin2 |
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,3 @@ Feature: Admin edit users
When I scroll to my name in the user list
And I click on the *Options* dropdown button
Then I see that the *Delete* action is disabled

Examples:
| full_name | username | password |
| Neela R. | ccoach | ccoach |
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,3 @@ Feature: Admin find users
When I write enough characters for all other users to be excluded
Then I see just the user I was searching for
And I see the number of pages as '1 of 1'

Examples:
| full_name | username | role |
| Pinco P. | coach | Coaches |
| John C. | learner | Learners |
| Carrie W. | admin2 | Admins |
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,3 @@ Feature: Class coach view
When I click on the class <class>
Then I am on *Class home* for class <class>
# Run the rest of the coach scenarios

Examples:
| class |
| Buffoons |
| Jugglers |
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,3 @@ Feature: Coaches can see sync statuses for connected devices
Given I am at the *Learners in '<class>'* page
When I click the *Information about sync statuses* hyperlink
Then I see a modal giving me information on each individual sync status

Examples:
|class |
|First Grade|
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,3 @@ Feature: Coach can add or remove bookmarked lesson resources
When I click the *Close* button
Then I am back at the *Coach > <class> > Plan > <lesson>* page
And I can see that the deselected bookmarked resources have been removed from the lesson resources

Examples:
| class | lesson |
| 1st grade | Counting to 10 |
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,3 @@ Feature: General navigation through the *Plan* tab
When I click on the *Groups* subtab
Then the *Groups* subtab is the active tab
And I see the list of groups

# Scenario: Filter quizzes
# Given that I am in the *Coach - '<class>' > Plan > Quizzes* tab
# And that the filter by default is “All quizzes”
# When I change the filter to “Active quizzes”
# Then I see only active quizzes
# When I change the filter to “Inactive quizzes”
# Then I see only inactive quizzes

# Scenario: Filter lessons
# Given that I am in the *Coach - '<class>' > Plan > Lessons* tab
# And the filter by default is “All lessons”
# When I change the filter to “Active lessons”
# Then I see only active lessons
# When I change the filter to “Inactive lessons”
# Then I see only inactive lessons
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,3 @@ Feature: Coach copies lesson
And I click on *Plan > Lessons* tab
Then I see the *Copy of '<lesson>'* in the list of lessons
And I see *1 group* value for it under the *Recipients* heading

Examples:
| lesson | class | class2 | group |
| Mathematics | Buffoons | Maestros | Virtuosas |
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,3 @@ Feature: Coach copies quiz
And I click on *Quizzes* tab
Then I see the *Copy of '<quiz>'* in the list of quizzes on *Coach - '<class2>' > Plan > Quizzes* page
And I see <group> group under the *Recipients* heading

Examples:
| quiz | class | class2 | group |
| First Quarter | Buffoons | Maestros | Virtuosas |
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,3 @@ Feature: Coach creates groups
When I leave the name field empty
And I click *Save*
Then I see the error notification *This field is required*

Examples:
| group |
| Team A |
| Team B |
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,3 @@ Feature: Coach creates lessons
Given I am on the search results page
When I click *Exit search*
Then I see the *Manage resources in '<lesson>'* page again


Examples:
| lesson | description | channel | topic |
| First lesson | Fractions 1 | Khan Academy (English) | Recognize fractions |
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,3 @@ Feature: Coach creates quizzes
And I am creating a second copy of the same channel-based quiz
When I am on the "Preview page" of this second copy
Then I see that the title of the channel quiz has a number appended to it to indicate it is a copy

Examples:
| quiz | number_of_question | exercises_questions | channel | topic |
| First Quarter | 5 | Mathématiques | Khan Academy (English) | Recognize fractions |
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,3 @@ Feature: Coach deletes lesson
But if I click the *Cancel* button
Then the modal closes
And I still see the lesson on the list

Examples:
| lesson |
| Counting 2 |
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,3 @@ Feature: Coach deletes quiz
Then the modal closes
And I see the snackbar notification
And I don't see the <quiz> on the list of *Quizzes*

Examples:
| quiz |
| First Quarter English Examination |
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,3 @@ Feature: Coach edits lessons
Then I see the report for all the learners for that resource
When I click the *Preview* button
Then I see the resource in a full page

Examples:
| lesson |
| First lesson |
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,3 @@ Feature: Coach edits quizzes
Then I see the <quiz> report page again
# No snackbar
And I see the changes I made reflected in the report header

Examples:
| quiz | description |
| First quiz | Fractions 1 |
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,3 @@ Feature: Coach manages lesson resources
When I click the *Remove* button for <resource> resource
Then the snackbar notification appears
And I don't see the <resource> on the list of resources anymore

Examples:
| lesson | resource |
| Read the story | Night Trouble |
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,3 @@ Feature: Coach makes lessons visible
Then I see a snackbar notification that says *Lesson is not visible to learners*
When I reload the browser as a learner
Then I don't see the lesson '<lesson>'

Examples:
| lesson |
| mathematics exercises |
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,3 @@ Coach needs to be able to determine which questions in a quiz are difficult
And I as a <learner2> also give correct answer to question <question2> in the <quiz2>
Then I as a coach <coach> go to *Coach - '<class>' > Reports > Quizzes > '<quiz2>' > Difficult questions* subtab
And I don't see any question under the *Question* column

Examples:
| class | quiz | exercise | question |
| First | Conting | Under 10 | Question 1 |
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,3 @@ Feature: Coach start and end quizzes according to their teaching needs
Then I see a snackbar notification saying *Quiz report is not visible to learners*
When I click the switch again
Then I see a snackbar notification saying *Quiz report is visible to learners*

Examples:
| quiz |
| First quarter |
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,3 @@ Feature: Groups subtab
When I click on the *Activity* subtab
Then I see an activity feed of resources members engaged with
And I see the *Resource type* and *Progress type* filter options

Examples:
| class | group | quiz | lesson |
| Mi classe | GrupoA | Sumar 1 | Dividir 2 |
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,3 @@ Feature: Lessons subtab
Then I am on the <resource> resource page again
And I see separate tables for each group
And the *View by groups* checkbox is still checked

Examples:
| class | learner | lesson | exercise | resource |
| My class | Marc G. | Basic division | Divide up! | One digit division video |
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,3 @@ Feature: Coach reviews learner reports for quizzes
Then their *Progress* column says *Completed*
And their *Progress* column says *N questions answered* or *All questions answered*
And their *Score* column shows the final score

Examples:
| class | quiz | group | question |
| My class | My quiz | group1 | Sumar 1 |
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,3 @@ Coach needs to be able to determine which questions in a lesson are difficult
And I as a <learner2> also give correct answer to question <question2> in the <exercise2>
Then I as a coach <coach> go to *Coach - '<class>' > Reports > Lessons > '<lesson>' > Difficult questions* subtab
And I don't see any question under the *Question* column

Examples:
| class | lesson | exercise | question |
| First | Conting | Under 10 | Question 1 |
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Feature: Coaches need to be able to print or save as PDF all the available views
And I confirm # could be *Save* or *OK* depending on the browser
Then I have a PDF version of the report


Scenario: Check print results for Lessons' reports

When I print or save the report from *Reports > Lessons* subtab
Expand Down Expand Up @@ -54,7 +53,6 @@ Feature: Coaches need to be able to print or save as PDF all the available views
Then on the paper/PDF I see a high level <learner1> overview on top
And below I see the table with the same columns and values for all the resources in <lesson1>, as in *Reports > Lessons > '<lesson1>' > Learners > '<learner1>'* page


Scenario: Check print results for Quizzes' reports

When I print or save the report from *Reports > Quizzes* subtab
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,3 @@ Feature: Admin sign-in
And I click the *Sign in* button
Then I am signed in
And I am at the *Facility > Classes* page

Examples:
| username | password |
| admin | admin |
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@ Feature: Coach sign-in
And I fill in my password <password>
And I click the *Sign in* button
Then I am signed in and I can see the *Coach > Class home* page

Examples:
| username | password |
| coach | coach |
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,3 @@ Feature: Guest creates an account
Given I am either on *Step 1 of 1 > Create an account* page or on *Step 1 of 2 > Create an account* page
When I click the *Sign in if you have an existing account* link
Then I am back at the sign-in page

Examples:
| full_name | password | username | password | facility |
| juan .p | learner | juan | pass | school |
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,3 @@ Feature: Learner sign-in
When I type my password
And I click *Continue*
Then I am signed in and I am at the *Learn > Home* page

Examples:
| username | password | facility |
| learner | learner | MyFacility |
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@ Feature: Super admin signs-in
When I fill out my password <password>
And I click the *Sign in* button
Then I am signed in and I can see the *Device > Channels* page

Examples:
| username | password |
| admin | admin |
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,3 @@ Feature: Guest engages content channels
When I click on the <content_item> card
Then I see the <content_item> page
And I am able to interact with the resource

Examples:
| channel | folder | subfolder | content_item |
| Kolibri Demo 1 | Science | Physics | Intro to springs and Hooke's law |
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,3 @@ Feature: Guest interacts with the View folder resources side panel
When I click the *Next folder* section
Then I see the *Browse channel* modal
And I see the folders and resources of the channel <channel>

Examples:
| channel | content_item |
| QA Channel | Intro to addition |
Loading

0 comments on commit efcaa7c

Please sign in to comment.