Proyectos de Subversion Moodle

Rev

| 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 |
17
    And the following "question categories" exist:
18
      | contextlevel | reference | name           |
19
      | Course       | C1        | Test questions |
20
    And 101 "questions" exist with the following data:
21
      | questioncategory | Test questions                |
22
      | qtype            | essay                         |
23
      | name             | essay [count]                 |
24
      | questiontext     | Write about whatever you want |
25
 
26
  Scenario: Edited question highlight is retained when go to multiple pages.
27
    Given I am on the "essay 1" "core_question > edit" page logged in as "teacher1"
28
    And I set the following fields to these values:
29
      | Question name | essay 1 edited |
30
    And I press "id_submitbutton"
31
    And I should see "essay 1 edited"
32
    And ".highlight" "css_element" should exist in the "#categoryquestions" "css_element"
33
    When I click on "2" "link" in the ".pagination" "css_element"
34
    And I click on "1" "link" in the ".pagination" "css_element"
35
    Then ".highlight" "css_element" should exist in the "#categoryquestions" "css_element"