You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.4 KiB
28 lines
1.4 KiB
2 years ago
|
@block @block_glossary_random
|
||
|
Feature: Random glossary entry block can be added to the frontpage
|
||
|
In order to show the entries from glossary on the frontpage
|
||
|
As a teacher
|
||
|
I can add the random glossary entry to the frontpage
|
||
|
|
||
|
Scenario: Admin can add random glossary block to the frontpage
|
||
|
Given the following "activities" exist:
|
||
|
| activity | name | intro | course | idnumber |
|
||
|
| glossary | Tips and Tricks | Frontpage glossary description | Acceptance test site | glossary0 |
|
||
|
And I log in as "admin"
|
||
|
And I am on site homepage
|
||
|
And I turn editing mode on
|
||
|
And I add the "Random glossary entry" block
|
||
|
And I configure the "block_glossary_random" block
|
||
|
And I set the following fields to these values:
|
||
|
| Title | Tip of the day |
|
||
|
| Take entries from this glossary | Tips and Tricks |
|
||
|
And I press "Save changes"
|
||
|
And I click on "Add a new entry" "link" in the "Tip of the day" "block"
|
||
|
And I set the following fields to these values:
|
||
|
| Concept | Never come late |
|
||
|
| Definition | Come in time for your classes |
|
||
|
And I press "Save changes"
|
||
|
When I log out
|
||
|
Then I should see "Never come late" in the "Tip of the day" "block"
|
||
|
And I should see "Come in time for your classes" in the "Tip of the day" "block"
|