[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/lti/tests/behat/ -> addtool.feature (source)

   1  @mod @mod_lti
   2  Feature: Add tools
   3    In order to provide activities for learners
   4    As a teacher
   5    I need to be able to add external tools to a course
   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 I log in as "admin"
  18      And I navigate to "Manage tools" node in "Site administration > Plugins > Activity modules > External tool"
  19      And I follow "Manage preconfigured tools"
  20      And I follow "Add preconfigured tool"
  21      And I set the following fields to these values:
  22        | Tool name | Teaching Tool 1 |
  23        | Tool configuration usage | Show in activity chooser and as a preconfigured tool |
  24      And I set the field "Tool base URL/cartridge URL" to local url "/mod/lti/tests/fixtures/tool_provider.php"
  25      And I press "Save changes"
  26      And I log out
  27  
  28    @javascript
  29    Scenario: Add a tool via the acitivity picker
  30      When I log in as "teacher1"
  31      And I follow "Course 1"
  32      And I turn editing mode on
  33      And I add a "Teaching Tool 1" to section "1" and I fill the form with:
  34        | Activity name | Test tool activity 1 |
  35        | Launch container | Embed |
  36      And I open "Test tool activity 1" actions menu
  37      And I follow "Edit settings" in the open menu
  38      Then the field "Preconfigured tool" matches value "Teaching Tool 1"


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1