From ae96bcd8648da8a4ca3f2854f1463126c84eeaae Mon Sep 17 00:00:00 2001 From: khangmach Date: Mon, 6 May 2019 17:39:45 -0700 Subject: [PATCH] Add additional changes to coach editing stories --- .../features/coach/coach-edit-lesson.feature | 39 ++++++++++++++----- .../features/coach/coach-edit-quiz.feature | 17 ++++++++ 2 files changed, 46 insertions(+), 10 deletions(-) diff --git a/integration_testing/features/coach/coach-edit-lesson.feature b/integration_testing/features/coach/coach-edit-lesson.feature index d2c677ae6e8..63a5b961599 100644 --- a/integration_testing/features/coach/coach-edit-lesson.feature +++ b/integration_testing/features/coach/coach-edit-lesson.feature @@ -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 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 page + And I see the snackbar notification “Lesson changes saved” + Scenario: Reassign lesson - When I click the lesson title - Then I see the 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 created previously + When I click the lesson title + Then I see the 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 created previously + When I click the lesson title + Then I see the page + When I click the lesson resource title + Then I see the resource in a full screen page Examples: | title | description | diff --git a/integration_testing/features/coach/coach-edit-quiz.feature b/integration_testing/features/coach/coach-edit-quiz.feature index d152404fb20..43001003c70 100644 --- a/integration_testing/features/coach/coach-edit-quiz.feature +++ b/integration_testing/features/coach/coach-edit-quiz.feature @@ -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 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 page + And I see the snackbar notification “Quiz changes saved” + + Scenario: Preview an existing quiz + Given there is a 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*