1441 |
ariadna |
1 |
@mod @mod_bigbluebuttonbn
|
|
|
2 |
Feature: Manage BigBlueButton session timings
|
|
|
3 |
As a teacher
|
|
|
4 |
I want to set and manage the open and close times for BigBlueButton sessions
|
|
|
5 |
So that I can control when students can join the sessions
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given a BigBlueButton mock server is configured
|
|
|
9 |
And I enable "bigbluebuttonbn" "mod" plugin
|
|
|
10 |
And the following "courses" exist:
|
|
|
11 |
| fullname | shortname |
|
|
|
12 |
| Course 1 | C1 |
|
|
|
13 |
And the following "users" exist:
|
|
|
14 |
| username | firstname | lastname | email |
|
|
|
15 |
| teacher1 | Teacher | One | teacher1@example.com |
|
|
|
16 |
| student1 | Student | One | student1@example.com |
|
|
|
17 |
And the following "course enrolments" exist:
|
|
|
18 |
| user | course | role |
|
|
|
19 |
| teacher1 | C1 | editingteacher |
|
|
|
20 |
| student1 | C1 | student |
|
|
|
21 |
And the following "blocks" exist:
|
|
|
22 |
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
|
|
23 |
| calendar_upcoming | System | 1 | my-index | side-post |
|
|
|
24 |
|
|
|
25 |
Scenario Outline: Setting and verifying BBB activity open and close times
|
|
|
26 |
Given the following "activities" exist:
|
|
|
27 |
| course | activity | name | openingtime | closingtime |
|
|
|
28 |
| C1 | bigbluebuttonbn | BBB 1 | <openingtime> | <closingtime> |
|
|
|
29 |
When I am on the "BBB 1" "bigbluebuttonbn activity" page logged in as student1
|
|
|
30 |
And "Join session" "link" <buttonvisibility> exist
|
|
|
31 |
And I should see "Open:"
|
|
|
32 |
And I should see "<openingtime>%A, %d %B %Y##"
|
|
|
33 |
And I should see "Close:"
|
|
|
34 |
And I should see "<closingtime>%A, %d %B %Y##"
|
|
|
35 |
And I am viewing calendar in "month" view
|
|
|
36 |
And I <calendarvisibility> see "BBB 1"
|
|
|
37 |
And I am on site homepage
|
|
|
38 |
And I follow "Dashboard"
|
|
|
39 |
And I <upcomingeventvisibility> see "BBB 1" in the "Upcoming events" "block"
|
|
|
40 |
|
|
|
41 |
Examples:
|
|
|
42 |
| openingtime | closingtime | calendarvisibility | buttonvisibility | upcomingeventvisibility |
|
|
|
43 |
| ##now +1 minute## | ##now +5 minutes## | should | should not | should |
|
|
|
44 |
| ##1 hour ago## | ##+2 hours## | should | should | should not |
|
|
|
45 |
| ##yesterday## | ##yesterday +3 hours## | should not | should not | should not |
|