-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from 4c0n/feature/allowing-constraint-on-body-…
…when-opening-email Allowing specification on body when opening email
- Loading branch information
Showing
3 changed files
with
73 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,13 @@ Then I should see an email with from "[email protected]" | |
Then I should see an email with subject "subject" and body "body" | ||
Then I should see an email with subject "subject" and body "body" from "[email protected]" | ||
Then I should see an email with subject "subject" from "[email protected]" | ||
Then I should see an email to "[email protected]" | ||
Then I should see an email with subject "subject" to "[email protected]" | ||
Then I should see an email with body "body" to "[email protected]" | ||
Then I should see an email from "[email protected]" to "[email protected]" | ||
Then I should see an email with subject "subject" and body "body" to "[email protected]" | ||
Then I should see an email with subject "subject" and body "body" from "[email protected]" to "[email protected]" | ||
Then I should see an email with subject "subject" from "[email protected]" to "[email protected]" | ||
Then I should see "some text" in email | ||
Then there should be 2 emails in my inbox | ||
Then I should see an email with attachment "lorem-ipsum.pdf" | ||
|
@@ -69,7 +76,14 @@ When I open the latest email to "[email protected]" | |
When I open the latest email with subject "Hello world" | ||
When I open the latest email from "[email protected]" with subject "Hello world" | ||
When I open the latest email to "[email protected]" with subject "Hello world" | ||
When I open the latest email with body "body" | ||
When I open the latest email with subject "subject" and body "body" | ||
When I open the latest email from "[email protected]" to "[email protected]" | ||
When I open the latest email from "[email protected]" with body "body" | ||
When I open the latest email to "[email protected]" with body "body" | ||
When I open the latest email from "[email protected]" with subject "subject" and body "body" | ||
When I open the latest email to "[email protected]" with subject "subject" and body "body" | ||
When I open the latest email from "[email protected]" to "[email protected]" with subject "subject" and body "body" | ||
Then I should see "Hello world" in the opened email | ||
Then I should see an attachment with filename "lorem-ipsum.pdf" in the opened email | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,12 @@ Feature: As the developer of this context I want it to function correctly | |
When I open the latest email to "[email protected]" | ||
Then I should see "See you later" in the opened email | ||
|
||
Scenario: As as user I want to open an email based on body | ||
Given I send an email with subject "Hello" and body "How are you?" to "[email protected]" | ||
Given I send an email with subject "Goodbye" and body "See you later" to "[email protected]" | ||
When I open the latest email with body "How are you?" | ||
Then I should see "How are you?" in the opened email | ||
|
||
Scenario: As a user I want to check for an attachment in an opened email | ||
Given I send an email with attachment "hello.txt" | ||
When I open the latest email from "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters