Skip to content

Commit 2ec70e2

Browse files
author
Matthias Opitz
committed
CTP-2242: Behat test to assert intended content is shown
1 parent 42dba87 commit 2ec70e2

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

tests/behat/show_news.feature

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
@block @block_news
2+
Feature: Show news
3+
In order to be informed about news
4+
As a user
5+
I need to be able to see the news block on my dashboard but not on my course page.
6+
7+
Background:
8+
Given the following "blocks" exist:
9+
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
10+
| news | System | 1 | site-index | side-pre |
11+
And the following config values are set as admin:
12+
| config | value | plugin |
13+
| title1 | News Title One | block_news |
14+
| description1 | News Description One | block_news |
15+
| link1 | https://apple.com | block_news |
16+
| title2 | News Title Two | block_news |
17+
| description2 | News Description Two | block_news |
18+
| link2 | https://google.com | block_news |
19+
| title3 | News Title Three | block_news |
20+
| description3 | News Description Three | block_news |
21+
| link3 | https://ucl.ac.uk | block_news |
22+
23+
Scenario: See news as intended.
24+
When I am on site homepage
25+
Then I should see "News"
26+
And I should see "News Title One"
27+
And I should see "News Title Two"
28+
And I should see "News Title Three"
29+

0 commit comments

Comments
 (0)