Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_assign
2
Feature: In an assignment, page titles are informative
3
  In order to know I am viewing the correct page
4
  The page titles need to reflect the current assignment and action
5
 
6
  Background:
7
    Given the following "courses" exist:
8
      | fullname | shortname | category | groupmode |
9
      | Course 1 | C1 | 0 | 1 |
10
    And the following "users" exist:
11
      | username | firstname | lastname | email |
12
      | teacher1 | Teacher | 1 | teacher1@example.com |
13
      | student1 | Student | 1 | student1@example.com |
14
    And the following "course enrolments" exist:
15
      | user | course | role |
16
      | teacher1 | C1 | editingteacher |
17
      | student1 | C1 | student |
18
    And the following "activities" exist:
19
      | activity | course | name                 | intro                       | assignsubmission_onlinetext_enabled |
20
      | assign   | C1     | History of ants      | Tell me the history of ants | 1                                   |
21
 
22
  Scenario: I view an assignment as a student and take an action
23
    When I am on the "History of ants" Activity page logged in as student1
24
    Then the page title should contain "C1: History of ants"
25
    And I press "Add submission"
26
    And the page title should contain "C1: History of ants - Edit submission"
27
 
28
  Scenario: I view an assignment as a teacher and take an action
29
    When I am on the "History of ants" Activity page logged in as teacher1
30
    Then the page title should contain "C1: History of ants"
31
    And I follow "View all submissions"
32
    And the page title should contain "C1: History of ants - Grading"
33
    And I click on "Grade" "link" in the "Student 1" "table_row"
34
    And the page title should contain "C1: History of ants - Grading"