Skip to content

Commit e1cea25

Browse files
opitzMatthias Opitz
and
Matthias Opitz
authored
CTP-2241: add Behat test checking alert is displayed (#10)
* testing one alert * checking link in alert Co-authored-by: Matthias Opitz <[email protected]>
1 parent 21fd1d0 commit e1cea25

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/behat/show_alerts.feature

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@block @block_alerts
2+
Feature: Show alerts
3+
In order to alert users
4+
As a user
5+
I need to be able to see that the alerts block shows the intended alert.
6+
7+
Background:
8+
Given the following "blocks" exist:
9+
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
10+
| alerts | System | 1 | site-index | side-pre |
11+
And the following config values are set as admin:
12+
| config | value | plugin |
13+
| title1 | Alert Title One | block_alerts |
14+
| description1 | Alert Description One | block_alerts |
15+
| link1 | https://nasa.gov | block_alerts |
16+
| linktext1 | Alert Link One | block_alerts |
17+
18+
Scenario: See news as intended and check the links lead to the intended websites.
19+
When I am on site homepage
20+
Then I should see "Alert Title One"
21+
And I should see "Alert Description One"
22+
When I click on "Alert Link One" "link"
23+
Then I should see "NASA"

0 commit comments

Comments
 (0)