| #*************************************************************** |
| # Licensed to the Apache Software Foundation (ASF) under one * |
| # or more contributor license agreements. See the NOTICE file * |
| # distributed with this work for additional information * |
| # regarding copyright ownership. The ASF licenses this file * |
| # to you under the Apache License, Version 2.0 (the * |
| # "License"); you may not use this file except in compliance * |
| # with the License. You may obtain a copy of the License at * |
| # * |
| # http://www.apache.org/licenses/LICENSE-2.0 * |
| # * |
| # Unless required by applicable law or agreed to in writing, * |
| # software distributed under the License is distributed on an * |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * |
| # KIND, either express or implied. See the License for the * |
| # specific language governing permissions and limitations * |
| # under the License. * |
| # **************************************************************/ |
| Feature: Move message and sharing |
| As a James user |
| I want that moving message work correctly with shared folder |
| |
| Background: |
| Given a domain named "domain.tld" |
| And some users "alice@domain.tld, bob@domain.tld" |
| And "alice@domain.tld" has a mailbox "shared" |
| And "alice@domain.tld" has a mailbox "INBOX" |
| And "alice@domain.tld" shares her mailbox "shared" with "bob@domain.tld" with "aeilrwt" rights |
| And "bob@domain.tld" has a mailbox "bobMailbox" |
| And "bob@domain.tld" has a mailbox "INBOX" |
| |
| Scenario: Move message should update the total and the unread counts when asked by sharer |
| Given "alice@domain.tld" has a message "m1" in "INBOX" mailbox |
| And "alice@domain.tld" moves "m1" to mailbox "shared" of user "alice@domain.tld" |
| When "alice@domain.tld" lists mailboxes |
| Then the mailbox "shared" has 1 message |
| And the mailbox "shared" has 1 unseen message |
| |
| Scenario: Move message should update the total and the unread counts of origin mailbox when asked by sharer |
| Given "alice@domain.tld" has a message "m1" in "INBOX" mailbox |
| And "alice@domain.tld" moves "m1" to mailbox "shared" of user "alice@domain.tld" |
| When "alice@domain.tld" lists mailboxes |
| Then the mailbox "INBOX" has 0 messages |
| And the mailbox "INBOX" has 0 unseen messages |
| |
| Scenario: Move message should update the total and the unread counts when asked by sharer / sharee view |
| Given "alice@domain.tld" has a message "m1" in "INBOX" mailbox |
| And "alice@domain.tld" moves "m1" to mailbox "shared" of user "alice@domain.tld" |
| When "bob@domain.tld" lists mailboxes |
| Then the mailbox "shared" has 1 message |
| And the mailbox "shared" has 1 unseen message |
| |
| Scenario: Move message should update the total and the unread counts of origin mailbox when asked by sharer / sharee view |
| Given "alice@domain.tld" has a mailbox "sharedBis" |
| And "alice@domain.tld" has a message "m1" in "sharedBis" mailbox |
| And "alice@domain.tld" shares her mailbox "sharedBis" with "bob@domain.tld" with "aeilrwt" rights |
| And "alice@domain.tld" moves "m1" to mailbox "shared" of user "alice@domain.tld" |
| When "bob@domain.tld" lists mailboxes |
| Then the mailbox "sharedBis" has 0 messages |
| And the mailbox "sharedBis" has 0 unseen messages |
| |
| Scenario: Move message should update the total and the unread counts when asked by sharee |
| Given "bob@domain.tld" has a message "m1" in "bobMailbox" mailbox |
| And "bob@domain.tld" moves "m1" to mailbox "shared" of user "alice@domain.tld" |
| When "alice@domain.tld" lists mailboxes |
| Then the mailbox "shared" has 1 message |
| And the mailbox "shared" has 1 unseen message |
| |
| Scenario: Move message should update the total and the unread counts of origin mailbox when asked by sharee |
| Given "bob@domain.tld" has a mailbox "sharedBis" |
| And "bob@domain.tld" has a message "m1" in "sharedBis" mailbox |
| And "bob@domain.tld" shares her mailbox "sharedBis" with "alice@domain.tld" with "aeilrwt" rights |
| And "bob@domain.tld" moves "m1" to mailbox "shared" of user "alice@domain.tld" |
| When "alice@domain.tld" lists mailboxes |
| Then the mailbox "sharedBis" has 0 messages |
| And the mailbox "sharedBis" has 0 unseen messages |
| |
| @BasicFeature |
| Scenario: Move message should update the total and the unread counts when asked by sharee / sharee view |
| Given "bob@domain.tld" has a message "m1" in "bobMailbox" mailbox |
| And "bob@domain.tld" moves "m1" to mailbox "shared" of user "alice@domain.tld" |
| When "bob@domain.tld" lists mailboxes |
| Then the mailbox "shared" has 1 message |
| And the mailbox "shared" has 1 unseen message |
| |
| Scenario: Move message should update the total and the unread counts of origin mailbox when asked by sharee / sharee view |
| Given "bob@domain.tld" has a message "m1" in "bobMailbox" mailbox |
| And "bob@domain.tld" moves "m1" to mailbox "shared" of user "alice@domain.tld" |
| When "bob@domain.tld" lists mailboxes |
| Then the mailbox "bobMailbox" has 0 messages |
| And the mailbox "bobMailbox" has 0 unseen messages |
| |
| Scenario: Moving a message to a delegated mailbox without rights should not change the total and the unread counts |
| Given "alice@domain.tld" has a mailbox "shared2" |
| And "alice@domain.tld" shares her mailbox "shared2" with "bob@domain.tld" with "lr" rights |
| And "bob@domain.tld" has a message "m1" in "bobMailbox" mailbox |
| And "bob@domain.tld" moves "m1" to mailbox "shared2" of user "alice@domain.tld" |
| When "alice@domain.tld" lists mailboxes |
| Then the mailbox "shared" has 0 messages |
| And the mailbox "shared" has 0 unseen messages |
| |
| Scenario: Moving a message to a delegated mailbox without rights should not change the total and the unread counts / sharee view |
| Given "alice@domain.tld" has a mailbox "shared2" |
| And "alice@domain.tld" shares her mailbox "shared2" with "bob@domain.tld" with "lr" rights |
| And "bob@domain.tld" has a message "m1" in "bobMailbox" mailbox |
| And "bob@domain.tld" moves "m1" to mailbox "shared2" of user "alice@domain.tld" |
| When "bob@domain.tld" lists mailboxes |
| Then the mailbox "shared" has 0 messages |
| And the mailbox "shared" has 0 unseen messages |
| |
| Scenario: Move message should update the total and the unread counts when asked by sharee and seen message |
| Given "bob@domain.tld" has a message "m1" in the "bobMailbox" mailbox with flags "$Seen" |
| And "bob@domain.tld" moves "m1" to mailbox "shared" of user "alice@domain.tld" |
| When "alice@domain.tld" lists mailboxes |
| Then the mailbox "shared" has 1 message |
| And the mailbox "shared" has 0 unseen message |
| |
| Scenario: Move message should update the total and the unread counts when asked by sharee / sharee view and seen message |
| Given "bob@domain.tld" has a message "m1" in the "bobMailbox" mailbox with flags "$Seen" |
| And "bob@domain.tld" moves "m1" to mailbox "shared" of user "alice@domain.tld" |
| When "bob@domain.tld" lists mailboxes |
| Then the mailbox "shared" has 1 message |
| And the mailbox "shared" has 0 unseen message |
| |
| Scenario: Move message should update the total and the unread counts of origin mailbox when asked by sharer and seen message |
| Given "alice@domain.tld" has a message "m1" in the "INBOX" mailbox with flags "$Seen" |
| And "alice@domain.tld" moves "m1" to mailbox "shared" of user "alice@domain.tld" |
| When "alice@domain.tld" lists mailboxes |
| Then the mailbox "INBOX" has 0 messages |
| And the mailbox "INBOX" has 0 unseen messages |
| |
| Scenario: Moving a message to a delegated mailbox without rights should not change the total and the unread counts |
| Given "alice@domain.tld" has a mailbox "shared2" |
| And "alice@domain.tld" shares her mailbox "shared2" with "bob@domain.tld" with "lri" rights |
| And "bob@domain.tld" has a message "m1" in the "bobMailbox" mailbox with flags "$Seen" |
| And "bob@domain.tld" moves "m1" to mailbox "shared2" of user "alice@domain.tld" |
| When "alice@domain.tld" lists mailboxes |
| Then the mailbox "shared" has 0 messages |
| And the mailbox "shared" has 0 unseen messages |
| |
| Scenario: Moving a message to a delegated mailbox without rights should not change the total and the unread counts / sharee view |
| Given "alice@domain.tld" has a mailbox "shared2" |
| And "alice@domain.tld" shares her mailbox "shared2" with "bob@domain.tld" with "lri" rights |
| And "bob@domain.tld" has a message "m1" in the "bobMailbox" mailbox with flags "$Seen" |
| And "bob@domain.tld" moves "m1" to mailbox "shared2" of user "alice@domain.tld" |
| When "bob@domain.tld" lists mailboxes |
| Then the mailbox "shared" has 0 messages |
| And the mailbox "shared" has 0 unseen messages |
| |