X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/tests/behat
home
/
cbholdings
/
pasukulu
/
lib
/
tests
/
behat
/
📁
..
📄
action_menu.feature
(1.11 KB)
📄
action_modal.feature
(2.06 KB)
📄
alpha_chooser.feature
(21.59 KB)
📄
behat_accessibility.php
(7.72 KB)
📄
behat_action_menu.php
(8.14 KB)
📄
behat_data_generators.php
(9.71 KB)
📄
behat_deprecated.php
(2.1 KB)
📄
behat_filters.php
(2.95 KB)
📄
behat_forms.php
(32.45 KB)
📄
behat_general.php
(97.03 KB)
📄
behat_hooks.php
(33.02 KB)
📄
behat_moodlenet.php
(2.03 KB)
📄
behat_navigation.php
(61.41 KB)
📄
behat_permissions.php
(12.62 KB)
📄
behat_transformations.php
(5.56 KB)
📄
datetime_any.feature
(4.24 KB)
📄
enabledashboard.feature
(846 B)
📄
expand_single_fieldset.feature
(697 B)
📄
largeforms.feature
(2.67 KB)
📄
locking.feature
(8.55 KB)
📄
min_max_version.feature
(1018 B)
📄
moodlenet_outbound.feature
(3.98 KB)
📄
permissionmanager.feature
(3.62 KB)
📄
readonlyform.feature
(1.7 KB)
📄
securelayout.feature
(1.68 KB)
📄
showuseridentity.feature
(4.26 KB)
📄
switch_editing_mode.feature
(2.72 KB)
📄
timezone.feature
(431 B)
📄
userfeedback.feature
(2.18 KB)
Editing: moodlenet_outbound.feature
@core Feature: MoodleNet outbound send activity In order to send activity to MoodleNet server As a teacher I need to be able package the activity and share to MoodleNet Background: Given I log in as "admin" And a MoodleNet mock server is configured And the following config values are set as admin: | enablesharingtomoodlenet | 1 | And I navigate to "Server > OAuth 2 services" in site administration And I press "MoodleNet" And I should see "Create new service: MoodleNet" And I change the MoodleNet field "Service base URL" to mock server And I press "Save changes" And I navigate to "MoodleNet > MoodleNet outbound settings" in site administration And I set the field "Auth 2 service" to "MoodleNet" And I press "Save changes" And the following course exists: | name | Test course | | shortname | C1 | And the following "users" exist: | username | firstname | lastname | email | | student1 | Student | 1 | student1@example.com | | teacher1 | Teacher | 1 | teacher1@example.com | | manager1 | Manager | 1 | manager1@example.com | And the following "course enrolments" exist: | user | course | role | | manager1 | C1 | manager | | teacher1 | C1 | editingteacher | | student1 | C1 | student | And the following "activities" exist: | activity | course | idnumber | name | intro | | assign | C1 | assign1 | Test Assignment 1 | Test Assignment 1 | Scenario: Share to MoodleNet menu only be available for teachers and managers Given I am on the "Test Assignment 1" "assign activity" page logged in as student1 Then "Share to MoodleNet" "link" should not exist in current page administration And I am on the "Test Assignment 1" "assign activity" page logged in as teacher1 And "Share to MoodleNet" "link" should exist in current page administration And I am on the "Test Assignment 1" "assign activity" page logged in as manager1 And "Share to MoodleNet" "link" should exist in current page administration Scenario: Share to MoodleNet menu only be available for user that has capability only Given the following "permission overrides" exist: | capability | permission | role | contextlevel | reference | | moodle/moodlenet:shareactivity | Prohibit | editingteacher | Course | C1 | When I am on the "Test Assignment 1" "assign activity" page logged in as teacher1 Then "Share to MoodleNet" "link" should not exist in current page administration And I am on the "Test Assignment 1" "assign activity" page logged in as manager1 And "Share to MoodleNet" "link" should exist in current page administration And the following "permission overrides" exist: | capability | permission | role | contextlevel | reference | | moodle/moodlenet:shareactivity | Prohibit | manager | Course | C1 | And I am on the "Test Assignment 1" "assign activity" page logged in as manager1 And "Share to MoodleNet" "link" should not exist in current page administration @javascript Scenario: User can share activity to MoodleNet Given I am on the "Test Assignment 1" "assign activity" page logged in as teacher1 When I navigate to "Share to MoodleNet" in current page administration Then I should see "Assignment" in the "Share to MoodleNet" "dialogue" And I should see "Test Assignment 1" in the "Share to MoodleNet" "dialogue" And I should see "You are sharing this to MoodleNet as a resource" in the "Share to MoodleNet" "dialogue" And I click on "Share" "button" in the "Share to MoodleNet" "dialogue" And I switch to "moodlenet_auth" window And I press "Allow" and switch to main window And I should see "Saved to MoodleNet drafts" And "Go to MoodleNet drafts" "link" should exist in the "Share to MoodleNet" "dialogue"
Upload File
Create Folder