[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  @core @core_calendar
   2  Feature: Limit displayed upcoming events
   3    In order to filter what is displayed on the calendar
   4    As a user
   5    I need to interact with the calendar
   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 "teacher1"
  18  
  19    Scenario: I view calendar details for a future event
  20      Given I follow "C1"
  21      And I turn editing mode on
  22      And I add the "Calendar" block
  23      And I follow "This month"
  24      And I click on "a.next" "css_element"
  25      And I click on "a.next" "css_element"
  26      And I create a calendar event:
  27        | Type of event     | course |
  28        | Event title       | Two months away event |
  29      When I follow "C1"
  30      Then I should not see "Two months away event"
  31      And I follow "Go to calendar"
  32      And I click on "Preferences" "button"
  33      And I set the following fields to these values:
  34        | Upcoming events look-ahead | 3 months |
  35      And I press "Save changes"
  36      And I wait to be redirected
  37      And I follow "C1"
  38      And I should see "Two months away event"


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