summaryrefslogtreecommitdiff
path: root/service/test/functional/features/compose_save_draft_and_send.feature
diff options
context:
space:
mode:
authorTiago Ferraz <tiago.ferraz@gmail.com>2015-03-09 16:14:50 -0300
committerTiago Ferraz <tiago.ferraz@gmail.com>2015-03-09 16:14:50 -0300
commit6b5de66fc5adc3c62a92738e9f317c4b1335f838 (patch)
tree09ad2b63806e9f72f10fee0c7e6825578ff4cd69 /service/test/functional/features/compose_save_draft_and_send.feature
parenta9a8a7330756d2fe9b6607dc670841b0ecfa64c5 (diff)
Refactoring of fuctional tests
The scenarios were updated to follow the conventions of gherkin steps. Removal of duplicated code.
Diffstat (limited to 'service/test/functional/features/compose_save_draft_and_send.feature')
-rw-r--r--service/test/functional/features/compose_save_draft_and_send.feature12
1 files changed, 7 insertions, 5 deletions
diff --git a/service/test/functional/features/compose_save_draft_and_send.feature b/service/test/functional/features/compose_save_draft_and_send.feature
index 10fa1aa2..b24d4c51 100644
--- a/service/test/functional/features/compose_save_draft_and_send.feature
+++ b/service/test/functional/features/compose_save_draft_and_send.feature
@@ -15,16 +15,18 @@
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
Feature: compose mail, save draft and send mail
+ As a user of Pixelated
+ I want to save drafts
+ So I can review and send them later
Scenario: user composes and email, save the draft, later sends the draft and checks the sent message
- Given I compose a message with
+ When I compose a message with
| subject | body |
| Pixelated rocks! | You should definitely use it. Cheers, User. |
- # And for the 'To' field I type 'ab' and chose the first contact that shows
- And for the 'To' field I enter 'pixelated@friends.org'
- And I save the draft
+ And for the 'To' field I enter 'pixelated@friends.org'
+ And I save the draft
When I open the saved draft and send it
Then I see that mail under the 'sent' tag
When I open that mail
Then I see that the subject reads 'Pixelated rocks!'
- And I see that the body reads 'You should definitely use it. Cheers, User.'
+ And I see that the body reads 'You should definitely use it. Cheers, User.'