[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @enrol @enrol_lti 2 Feature: Check that the page listing the shared external tools is functioning as expected 3 In order to edit an external tool 4 As a teacher 5 I need to ensure the tool listing page is working as expected 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher1 | Teacher | 1 | teacher1@example.com | 11 And the following "courses" exist: 12 | fullname | shortname | format | 13 | Course 1 | C1 | topics | 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 enrol plugins" node in "Site administration > Plugins > Enrolments" 19 And I click on "Enable" "link" in the "Publish as LTI tool" "table_row" 20 And I log out 21 22 Scenario: I want to edit an external tool 23 Given I log in as "teacher1" 24 And I follow "Course 1" 25 And I turn editing mode on 26 And I add a "Assignment" to section "1" and I fill the form with: 27 | Assignment name | Test assignment name | 28 | Description | Submit your online text | 29 And I navigate to "Enrolment methods" node in "Course administration > Users" 30 And I select "Publish as LTI tool" from the "Add method" singleselect 31 And I set the following fields to these values: 32 | Custom instance name | Assignment - LTI | 33 | Tool to be published | Test assignment name | 34 And I press "Add method" 35 And I navigate to "Published as LTI tools" node in "Course administration" 36 And I should see "Assignment - LTI" in the ".generaltable" "css_element" 37 When I click on "Disable" "link" in the "Assignment - LTI" "table_row" 38 Then ".dimmed_text" "css_element" should exist in the "Assignment - LTI" "table_row" 39 And I click on "Enable" "link" in the "Assignment - LTI" "table_row" 40 And ".dimmed_text" "css_element" should not exist in the "Assignment - LTI" "table_row" 41 And I click on "Edit" "link" in the "Assignment - LTI" "table_row" 42 And I set the following fields to these values: 43 | Custom instance name | Course - LTI | 44 | Tool to be published | Course | 45 And I press "Save changes" 46 And I should see "Course - LTI" in the ".generaltable" "css_element" 47 And I click on "Delete" "link" in the "Course - LTI" "table_row" 48 And I press "Cancel" 49 And I should see "Course - LTI" in the ".generaltable" "css_element" 50 And I click on "Delete" "link" in the "Course - LTI" "table_row" 51 And I press "Continue" 52 And I should see "No tools provided" 53 And I should not see "Course - LTI"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |