Skip to content

Commit

Permalink
Add additional changes to coach editing stories
Browse files Browse the repository at this point in the history
  • Loading branch information
khangmach committed May 7, 2019
1 parent f4bca8f commit ae96bcd
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 10 deletions.
39 changes: 29 additions & 10 deletions integration_testing/features/coach/coach-edit-lesson.feature
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,36 @@ Feature: Coach edits lessons
And I see the description change under the *Lesson* tab
And I see the snackbar notification “Lesson changes saved”

Scenario: Edit existing lesson status
Given there is a lesson <lesson> created previously
When I click the *Options* button
And I select *Edit details*
Then I see the *Edit lesson details* page
When I edit the lesson status
And I click *Save changes* button
Then the page closes
And I see the status change in the <lesson> page
And I see the snackbar notification “Lesson changes saved”

Scenario: Reassign lesson
When I click the lesson title <lesson>
Then I see the <lesson> page
When I click *Options* button
And I select *Edit details*
Then I see the *Edit lesson details* modal
When I change *Visible to* by selecting *Entire class* or one of the groups
And I click *Save* button
Then the modal closes
And the snackbar notification appears
And I see the change under *Visible to*
Given there is a lesson <lesson> created previously
When I click the lesson title <lesson>
Then I see the <lesson> page
When I click *Options* button
And I select *Edit details*
Then I see the *Edit lesson details* modal
When I change *Visible to* by selecting *Entire class* or one of the groups
And I click *Save* button
Then the modal closes
And the snackbar notification appears
And I see the change under *Visible to*

Scenario: Preview lesson resource
Given there is a lesson <lesson> created previously
When I click the lesson title
Then I see the <lesson> page
When I click the lesson resource title
Then I see the resource in a full screen page

Examples:
| title | description |
Expand Down
17 changes: 17 additions & 0 deletions integration_testing/features/coach/coach-edit-quiz.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@ Feature: Coach edits quizzes
And I see the title change under the *quiz* tab
And I see the snackbar notification *Changes to quiz saved*

Scenario: Edit existing quiz status
Given there is a quiz <quiz> created previously
When I click the *Options* button
And I select *Edit details*
Then I see the *Edit quiz details* page
When I edit the quiz status
And I click *Save changes* button
Then the page closes
And I see the status change in the <quiz> page
And I see the snackbar notification “Quiz changes saved”

Scenario: Preview an existing quiz
Given there is a quiz <quiz> created previously
When I click the quiz name
Then I see the quiz preview
And I can see all the correct answers of the questions

Scenario: Reassign quiz
When I click *Options* button
And I select *Edit details*
Expand Down

0 comments on commit ae96bcd

Please sign in to comment.