Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_question
2
Feature: A teacher can see highlighted questions in the question bank
3
  In order to see my edited questions
4
  As a teacher
5
  I need to be able see the highlight of my edited question.
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email                |
10
      | teacher1 | Teacher   | 1        | teacher1@example.com |
11
    And the following "courses" exist:
12
      | fullname | shortname | format |
13
      | Course 1 | C1        | weeks  |
14
    And the following "course enrolments" exist:
15
      | user     | course | role           |
16
      | teacher1 | C1     | editingteacher |
1441 ariadna 17
    And the following "activities" exist:
18
      | activity | name    | course | idnumber |
19
      | qbank    | Qbank 1 | C1     | qbank1   |
1 efrain 20
    And the following "question categories" exist:
1441 ariadna 21
      | contextlevel    | reference | name           |
22
      | Activity module | qbank1    | Test questions |
1 efrain 23
    And 101 "questions" exist with the following data:
24
      | questioncategory | Test questions                |
25
      | qtype            | essay                         |
26
      | name             | essay [count]                 |
27
      | questiontext     | Write about whatever you want |
28
 
29
  Scenario: Edited question highlight is retained when go to multiple pages.
30
    Given I am on the "essay 1" "core_question > edit" page logged in as "teacher1"
31
    And I set the following fields to these values:
32
      | Question name | essay 1 edited |
33
    And I press "id_submitbutton"
34
    And I should see "essay 1 edited"
35
    And ".highlight" "css_element" should exist in the "#categoryquestions" "css_element"
36
    When I click on "2" "link" in the ".pagination" "css_element"
37
    And I click on "1" "link" in the ".pagination" "css_element"
38
    Then ".highlight" "css_element" should exist in the "#categoryquestions" "css_element"