[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/calendar/tests/behat/ -> export.feature (source)

   1  @core @core_calendar @core_calendar_export
   2  Feature: Export calendar events
   3    In order to be able to use my calendar events outside of Moodle
   4    As a user
   5    I need to export calendar events in iCalendar format
   6  
   7    Background:
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email |
  10        | student1 | Student | 1 | student1@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        | student1 | C1 | student |
  17      And I log in as "student1"
  18  
  19    Scenario: Viewing calendar export options
  20      Given I follow "This month"
  21      When I click on "Export calendar" "button"
  22      Then I should see "All events"
  23      And I should see "Events related to courses"
  24      And I should see "Events related to groups"
  25      And I should see "My personal events"
  26  
  27    Scenario: Generating calendar URL for all events
  28      Given I follow "This month"
  29      And I click on "Export calendar" "button"
  30      And I set the field "All events" to "1"
  31      And I set the field "Recent and next 60 days" to "1"
  32      When I click on "Get calendar URL" "button"
  33      Then I should see "&preset_what=all&"
  34  
  35    Scenario: Generating calendar URL for course events
  36      Given I follow "This month"
  37      And I click on "Export calendar" "button"
  38      And I set the field "Events related to courses" to "1"
  39      And I set the field "Recent and next 60 days" to "1"
  40      When I click on "Get calendar URL" "button"
  41      Then I should see "&preset_what=courses&"
  42  
  43    Scenario: Generating calendar URL for group events
  44      Given I follow "This month"
  45      And I click on "Export calendar" "button"
  46      And I set the field "Events related to groups" to "1"
  47      And I set the field "Recent and next 60 days" to "1"
  48      When I click on "Get calendar URL" "button"
  49      Then I should see "&preset_what=groups&"
  50  
  51    Scenario: Generating calendar URL for user events
  52      Given I follow "This month"
  53      And I click on "Export calendar" "button"
  54      And I set the field "My personal events" to "1"
  55      And I set the field "Recent and next 60 days" to "1"
  56      When I click on "Get calendar URL" "button"
  57      Then I should see "&preset_what=user&"


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