[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  @core @core_calendar
   2  Feature: Open calendar popup
   3    In order to view calendar information
   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        | 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 "admin"
  18  
  19    @javascript
  20    Scenario: I view calendar details of a day with multiple events
  21      Given I follow "This month"
  22      And I create a calendar event:
  23        | Type of event     | site |
  24        | Event title       | Event 1:1 |
  25        | timestart[day]    | 1  |
  26      And I create a calendar event:
  27        | Type of event     | site |
  28        | Event title       | Event 1:2 |
  29        | timestart[day]    | 1  |
  30      When I hover over day "1" of this month in the calendar
  31      Then I should see "Event 1:1"
  32      And I should see "Event 1:2"
  33      And I follow "Home"
  34      And I hover over day "1" of this month in the calendar
  35      And I should see "Event 1:1"
  36      And I should see "Event 1:2"
  37  
  38    @javascript
  39    Scenario: I view calendar details for today
  40      Given I follow "This month"
  41      And I create a calendar event:
  42        | Type of event     | site |
  43        | Event title       | Today's event |
  44      When I hover over today in the calendar
  45      Then I should see "Today's event"
  46      And I follow "Home"
  47      And I hover over today in the calendar
  48      And I should see "Today's event"


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