1441 |
ariadna |
1 |
@behat_test @behat_email
|
|
|
2 |
Feature: Testing Email Functionality
|
|
|
3 |
|
|
|
4 |
Background:
|
|
|
5 |
Given an email catcher server is configured
|
|
|
6 |
|
|
|
7 |
Scenario: Verifying email content to user
|
|
|
8 |
When the following emails have been sent:
|
|
|
9 |
| to | subject | message |
|
|
|
10 |
| student1@example.com | A testing subject | This is a test message |
|
|
|
11 |
Then the email to "student1@example.com" with subject containing "A testing subject" should contain "This is a test message"
|
|
|
12 |
|
|
|
13 |
Scenario: Test emptying the email inbox
|
|
|
14 |
When the following emails have been sent:
|
|
|
15 |
| to | subject |
|
|
|
16 |
| student1@example.com | Apple |
|
|
|
17 |
| student1@example.com | Banana |
|
|
|
18 |
| student1@example.com | Chocolate |
|
|
|
19 |
Then user "student1@example.com" should have 3 emails
|
|
|
20 |
And I empty the email inbox
|
|
|
21 |
And user "student1@example.com" should have 0 emails
|