Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_survey @javascript
2
Feature: When some answers are not selected, the survey should not be submitted
3
    In order to submit valid responses
4
    As a student
5
    I need to fill values
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email                |
10
      | student1 | Student   | 1        | student1@example.com |
11
    And the following "courses" exist:
12
      | fullname | shortname |
13
      | Course 1 | C1        |
14
    And the following "course enrolments" exist:
15
      | user     | course | role    |
16
      | student1 | C1     | student |
17
    And I enable "survey" "mod" plugin
18
 
19
  Scenario: Require survey view
20
    Given the following "activities" exist:
21
      | activity | name             | course |
22
      | survey   | Test survey name | C1     |
23
    And I am on the "Test survey name" "survey activity" page logged in as "student1"
24
    When I press "Submit"
25
    Then I should see "Some of the multiple choice questions have not been answered." in the "Error" "dialogue"