[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_choice 2 Feature: Test the display of the choice module on my home 3 In order to know my status in a choice activity 4 As a user 5 I need to see it in My dashboard. 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher1 | Teacher | 1 | teacher1@example.com | 11 | student1 | Student | 1 | student1@example.com | 12 And the following "courses" exist: 13 | fullname | shortname | category | 14 | Course 1 | C1 | 0 | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | teacher1 | C1 | editingteacher | 18 | student1 | C1 | student | 19 And I log in as "teacher1" 20 And I follow "Course 1" 21 And I turn editing mode on 22 And I add a "Choice" to section "1" 23 And I expand all fieldsets 24 And I set the following fields to these values: 25 | Choice name | Test choice name | 26 | Description | Test choice description | 27 | timeopen[enabled] | 1 | 28 | timeclose[enabled] | 1 | 29 | timeclose[day] | 1 | 30 | timeclose[month] | January | 31 | timeclose[year] | 2030 | 32 | timeclose[hour] | 08 | 33 | timeclose[minute] | 00 | 34 | Allow choice to be updated | No | 35 | option[0] | Option 1 | 36 | option[1] | Option 2 | 37 And I press "Save and return to course" 38 And I log out 39 40 Scenario: View my home as a student before answering the choice 41 Given I log in as "student1" 42 When I click on "Dashboard" "link" in the "Navigation" "block" 43 Then I should see "You have Choices that need attention" 44 And I should see "Not answered yet" 45 And I log out 46 47 Scenario: View my home as a student after answering the choice 48 Given I log in as "student1" 49 And I follow "Course 1" 50 And I choose "Option 1" from "Test choice name" choice activity 51 And I should see "Your selection: Option 1" 52 And I should see "Your choice has been saved" 53 And "Save my choice" "button" should not exist 54 When I click on "Dashboard" "link" in the "Navigation" "block" 55 Then I should not see "You have Choices that need attention" 56 And I log out 57 58 Scenario: View my home as a teacher 59 Given I log in as "student1" 60 And I follow "Course 1" 61 And I choose "Option 1" from "Test choice name" choice activity 62 And I should see "Your selection: Option 1" 63 And I should see "Your choice has been saved" 64 And "Save my choice" "button" should not exist 65 And I log out 66 When I log in as "teacher1" 67 And I click on "Dashboard" "link" in the "Navigation" "block" 68 Then I should see "You have Choices that need attention" 69 And I should see "View 1 responses" 70 And I log out
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |