__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@core @core_calendar
Feature: Export calendar events
  In order to be able to use my calendar events outside of Moodle
  As a user
  I need to export calendar events in iCalendar format

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email |
      | student1 | Student | 1 | student1@example.com |
    And the following "courses" exist:
      | fullname | shortname | format |
      | Course 1 | C1 | topics |
    And the following "course enrolments" exist:
      | user | course | role |
      | student1 | C1 | student |
    And I log in as "student1"

  Scenario: Viewing calendar export options
    Given I follow "Full calendar"
    When I click on "Import or export calendars" "link"
    And "Calendar" "link" should exist in the ".breadcrumb" "css_element"
    And "Import or export calendars" "text" should exist in the ".breadcrumb" "css_element"
    And I click on "Export calendar" "button"
    And "Calendar" "link" should exist in the ".breadcrumb" "css_element"
    And "Import or export calendars" "link" should exist in the ".breadcrumb" "css_element"
    And "Export calendar" "text" should exist in the ".breadcrumb" "css_element"
    Then I should see "All events"
    And I should see "Events related to courses"
    And I should see "Events related to groups"
    And I should see "My personal events"

  @javascript
  Scenario: Export calendar in ics format
    And I follow "Full calendar"
    And I press "New event"
    And I set the following fields to these values:
      | Event title         | My event |
      | id_timestart_hour   | 13       |
      | id_timestart_minute | 00       |
    And I press "Save"
    When I click on "Import or export calendars" "link"
    And I click on "Export calendar" "button"
    And I set the field "All events" to "1"
    And I set the field "Recent and next 60 days" to "1"
    And I press "Export"
    And I should see "SUMMARY:My event"
    # We need to split the step in two because Bennu library use days with leading zero and moodle removes it.
    And I should see "##today##DTSTART:%Y%m##"
    And I should see "##today##%dT050000Z##"

  Scenario: Generating calendar URL for all events
    Given I follow "Full calendar"
    And I click on "Import or export calendars" "link"
    And I click on "Export calendar" "button"
    And I set the field "All events" to "1"
    And I set the field "Recent and next 60 days" to "1"
    When I click on "Get calendar URL" "button"
    Then the "value" attribute of "Calendar URL" "field" should contain "&preset_what=all&"

  Scenario: Generating calendar URL for course events
    Given I follow "Full calendar"
    And I click on "Import or export calendars" "link"
    And I click on "Export calendar" "button"
    And I set the field "Events related to courses" to "1"
    And I set the field "Recent and next 60 days" to "1"
    When I click on "Get calendar URL" "button"
    Then the "value" attribute of "Calendar URL" "field" should contain "&preset_what=courses&"

  Scenario: Generating calendar URL for group events
    Given I follow "Full calendar"
    And I click on "Import or export calendars" "link"
    And I click on "Export calendar" "button"
    And I set the field "Events related to groups" to "1"
    And I set the field "Recent and next 60 days" to "1"
    When I click on "Get calendar URL" "button"
    Then the "value" attribute of "Calendar URL" "field" should contain "&preset_what=groups&"

  Scenario: Generating calendar URL for category events
    Given I follow "Full calendar"
    And I click on "Import or export calendars" "link"
    And I click on "Export calendar" "button"
    And I set the field "Events related to categories" to "1"
    And I set the field "Recent and next 60 days" to "1"
    When I click on "Get calendar URL" "button"
    Then the "value" attribute of "Calendar URL" "field" should contain "&preset_what=categories&"

  Scenario: Generating calendar URL for user events
    Given I follow "Full calendar"
    And I click on "Import or export calendars" "link"
    And I click on "Export calendar" "button"
    And I set the field "My personal events" to "1"
    And I set the field "Recent and next 60 days" to "1"
    When I click on "Get calendar URL" "button"
    Then the "value" attribute of "Calendar URL" "field" should contain "&preset_what=user&"

Filemanager

Name Type Size Permission Actions
behat_calendar.php File 9.75 KB 0777
behat_calendar_deprecated.php File 2.56 KB 0777
calendar.feature File 19.36 KB 0777
calendar_import.feature File 4.7 KB 0777
calendar_lookahead.feature File 1.74 KB 0777
calendar_utf8.feature File 948 B 0777
calender_filter.feature File 3.08 KB 0777
category_events.feature File 4.79 KB 0777
export.feature File 4.28 KB 0777
minicalendar.feature File 1.54 KB 0777
Filemanager