Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_lti
2
Feature: Content-Item support
3
  In order to easily add activities and content in a course from an external tool
4
  As a teacher
5
  I need to utilise a tool that supports the Deep Linking (Content-Item Message) type
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email                |
10
      | teacher1 | Terry1    | Teacher1 | teacher1@example.com |
11
    And the following "courses" exist:
12
      | fullname | shortname | category |
13
      | Course 1 | C1 | 0 |
14
    And the following "course enrolments" exist:
15
      | user | course | role |
16
      | teacher1 | C1 | editingteacher |
17
    And the following "mod_lti > tool types" exist:
18
      | name            | description        | baseurl                                   | coursevisible | state | lti_contentitem |
19
      | Teaching Tool 1 | Tool 1 description | /mod/lti/tests/fixtures/tool_provider.php | 2             | 1     | 1               |
20
 
21
  @javascript
22
  Scenario: Tool that supports Deep Linking should be able to configure a tool via the Select content button
23
    Given I log in as "teacher1"
24
    And I am on "Course 1" course homepage with editing mode on
25
    When I add a "Teaching Tool 1" to section "1" using the activity chooser
26
    Then "Select content" "button" should be visible
27
    And the "Select content" "button" should be enabled
28
 
29
  Scenario: Editing the settings for an instance of a tool configured with Deep Linking support
30
    Given the following "mod_lti > tool instances" exist:
31
    | name                 | tool            | course |
32
    | Test tool activity 1 | Teaching Tool 1 | C1     |
33
    When I am on the "Test tool activity 1" "lti activity editing" page logged in as teacher1
34
    Then I should see "Select content"
35
    And the "Select content" "button" should be enabled