~ubuntu-branches/ubuntu/trusty/moodle/trusty

« back to all changes in this revision

Viewing changes to admin/tool/behat/tests/behat/data_generators.feature

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-01-21 13:40:52 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20140121134052-ym2qvsp2cd9vq0p6
Tags: 2.5.4-1
* New upstream release, fixing security issues:
  - MSA-14-0001 Config passwords visibility issue [CVE-2014-0008]
  - MSA-14-0002 Group constraints lacking in "login as" [CVE-2014-0009]
  - MSA-14-0003 CSRF vulnerability in profile fields [CVE-2014-0010]
* Move /var/lib/moodle directory into package.
* Revert back to bundled yui3. Unfortunately, version in Debian and
  of upstream are not compatible (closes: #735312).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
@tool @tool_behat
 
1
@tool @tool_behat @_only_local
2
2
Feature: Set up contextual data for tests
3
3
  In order to write tests quickly
4
4
  As a developer
143
143
      | fullname | shortname |
144
144
      | Course 1 | C1 |
145
145
    And the following "activities" exists:
146
 
      | activity | name | intro | course | idnumber |
147
 
      | assign   | Test assignment name | Test assignment description | C1 | assign1 |
148
 
      | data     | Test database name | Test database description | C1 | data1 |
 
146
      | activity   | name                   | intro                         | course | idnumber    |
 
147
      | assign     | Test assignment name   | Test assignment description   | C1     | assign1     |
 
148
      | assignment | Test assignment22 name | Test assignment22 description | C1     | assignment1 |
 
149
      | data       | Test database name     | Test database description     | C1     | data1       |
 
150
      | forum      | Test forum name        | Test forum description        | C1     | forum1      |
 
151
      | label      | Test label name        | Test label description        | C1     | label1      |
 
152
      | lti        | Test lti name          | Test lti description          | C1     | lti1        |
 
153
      | page       | Test page name         | Test page description         | C1     | page1       |
 
154
      | quiz       | Test quiz name         | Test quiz description         | C1     | quiz1       |
 
155
      | resource   | Test resource name     | Test resource description     | C1     | resource1   |
149
156
    When I log in as "admin"
150
157
    And I follow "Course 1"
151
158
    Then I should see "Test assignment name"
 
159
    # Assignment 2.2 is disabled by default:
 
160
    # And I should see "Test assignment22 name"
152
161
    And I should see "Test database name"
 
162
    And I should see "Test forum name"
 
163
    # User can see label description instead of name on the course page:
 
164
    And I should see "Test label description"
 
165
    And I should see "Test lti name"
 
166
    And I should see "Test page name"
 
167
    And I should see "Test quiz name"
 
168
    And I should see "Test resource name"
153
169
    And I follow "Test assignment name"
154
170
    And I should see "Test assignment description"
155
171