moodle/blocks/calendar_upcoming/tests/behat/block_calendar_upcoming_dashboard.feature
Pau Ferrer Ocaña 375d82cafc MDL-66612 calendar: Change global events to site events
AMOS BEGIN
 CPY [category,moodle],[category,calendar]
 CPY [site,notes],[eventtypesite,calendar]
 CPY [site,moodle],[site,calendar]
 MOV [typesite,moodle],[siteevent,calendar]
AMOS END
2019-10-21 09:33:01 +02:00

19 lines
682 B
Gherkin

@block @block_calendar_upcoming
Feature: View a upcoming site event on the dashboard
In order to view a site event
As a student
I can view the event in the upcoming events block
Background:
Given the following "users" exist:
| username | firstname | lastname | email | idnumber |
| student1 | Student | 1 | student1@example.com | S1 |
@javascript
Scenario: View a site event in the upcoming events block on the dashboard
Given I log in as "admin"
And I create a calendar event with form data:
| id_eventtype | Site |
| id_name | My Site Event |
And I log out
When I log in as "student1"
Then I should see "My Site Event"