summaryrefslogtreecommitdiff
path: root/service/test/functional/features/forward_trash_archive.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/forward_trash_archive.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/forward_trash_archive.feature')
-rw-r--r--service/test/functional/features/forward_trash_archive.feature17
1 files changed, 9 insertions, 8 deletions
diff --git a/service/test/functional/features/forward_trash_archive.feature b/service/test/functional/features/forward_trash_archive.feature
index 91e078ea..85c422d9 100644
--- a/service/test/functional/features/forward_trash_archive.feature
+++ b/service/test/functional/features/forward_trash_archive.feature
@@ -14,18 +14,19 @@
# You should have received a copy of the GNU Affero General Public License
# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
-Feature: forward_trash_archive
+Feature: forward and deletion
+ As a user of Pixelated
+ I want to forward emails using CC and Bcc features
+ So I can take actions
Scenario: User forwards a mail, add CC and BCC address, later trash the mail
Given I have a mail in my inbox
When I open the first mail in the 'inbox'
- Then I choose to forward this mail
- # And for the 'CC' field I type 'ab' and chose the first contact that shows
- # And for the 'Bcc' field I type 'fr' and chose the first contact that shows
- Given for the 'CC' field I enter 'pixelated@friends.org'
- And for the 'Bcc' field I enter 'pixelated@family.org'
- Then I forward this mail
+ And I choose to forward this mail
+ When for the 'CC' field I enter 'pixelated@friends.org'
+ And for the 'Bcc' field I enter 'pixelated@family.org'
+ And I forward this mail
When I open the first mail in the 'sent'
Then I see the mail has a cc and a bcc recipient
- And I choose to trash
+ When I choose to trash
Then I see that mail under the 'trash' tag