Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_scorm
2
Feature: Scorm with no calendar capabilites
3
  In order to allow work effectively
4
  As a teacher
5
  I need to be able to create SCORM activities even when I cannot edit calendar events
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | category | groupmode |
10
      | Course 1 | C1 | 0 | 1 |
11
    And the following "users" exist:
12
      | username | firstname | lastname | email |
13
      | teacher1 | Teacher | 1 | teacher1@example.com |
14
    And the following "course enrolments" exist:
15
      | user | course | role |
16
      | teacher1 | C1 | editingteacher |
17
    And the following "activity" exists:
18
      | activity        | scorm                                          |
19
      | course          | C1                                             |
20
      | name            | Test scorm name                                |
21
      | timeopen        | ##first day of January 2017##                  |
22
      | timeclose       | ##first day of February 2017##                 |
23
      | packagefilepath | mod/scorm/tests/packages/singlesco_scorm12.zip |
24
    And I log in as "admin"
25
    And I am on the "Course 1" "permissions" page
26
    And I override the system permissions of "Teacher" role with:
27
      | capability | permission |
28
      | moodle/calendar:manageentries | Prohibit |
29
    And I log out
30
 
31
  @javascript @_file_upload @_switch_iframe
32
  Scenario: Editing a scorm activity without calendar permission
33
    Given I am on the "Test scorm name" "scorm activity editing" page logged in as teacher1
34
    When I set the following fields to these values:
35
      | id_timeopen_year | 2018 |
36
      | id_timeclose_year | 2018 |
37
    And I press "Save and return to course"
38
    Then I should see "Test scorm name"