Update TF-1786-TeamMail-Swipe-in-Email-item-in-ThreadView .md

(cherry picked from commit bb7d458c6923982f5c50eb6fbee21cfcc61490ee)
This commit is contained in:
Quang Hoang
2023-05-15 09:41:00 +07:00
committed by Dat Vu
parent 94c95c178d
commit 2ab35ed6c8
@@ -9,35 +9,7 @@
* TODO: {link}
## Acceptance Criteria:
```
GIVEN I'm a Tmail user
AND There are existed unread emails on my mailbox
WHEN I swipe left to right on an unread email rows
THEN I see the email row is swiped as blue background color belong with "read email icon"
AND System mark an email as read
GIVEN I'm a Tmail user
AND There are existed read emails on my mailbox
WHEN I swipe left to right on an read email rows
THEN I see the email row is swiped as blue background color belong with "unread email icon"
AND System mark an email as unread
GIVEN I'm a Tmail user
AND There are existed emails on my mailboxes
WHEN I swipe right to left on an email rows
THEN I see the email row is swiped as blue background color belong with "Move email icon"
AND System display a list mailbox dialog to let user select the email moving desitination
AND System display a checked icon belong to mailbox in the list which indicate user that email is in what mailbox at the moment
GIVEN I'm a Tmail user
WHEN I swipe right to left on an email rows
AND I select one mailbox in the list
THEN The email is moved with the toast message
```
## Definition
## Definition:
**UC1. As I am a user, I want to swipe left to right to mark an email as read without opening this email
On thread-view, when I swipe left to right on email which be unread state, I can see:
@@ -46,6 +18,16 @@ On thread-view, when I swipe left to right on email which be unread state, I can
**Expected:** User mark an email as read successfully.
```
GIVEN I'm a Tmail user
AND There are existed unread emails on my mailbox
WHEN I swipe left to right on an unread email rows
THEN I see the email row is swiped as blue background color belong with "read email icon"
AND System mark an email as read
```
![image](https://user-images.githubusercontent.com/124866146/235097387-fb616f8f-ff50-4dfe-8e2b-44a5bca3aba4.png)
**UC2. As I am a user, I want to swipe left to right to mark an email as unread without opening this email
On thread-view, when I swipe left to right on email which be unread state, I can see:
@@ -54,6 +36,15 @@ On thread-view, when I swipe left to right on email which be unread state, I can
**Expected:** User mark an email as unread successfully.
```
GIVEN I'm a Tmail user
AND There are existed read emails on my mailbox
WHEN I swipe left to right on an read email rows
THEN I see the email row is swiped as blue background color belong with "unread email icon"
AND System mark an email as unread
```
![image](https://user-images.githubusercontent.com/124866146/235097306-615f0b87-5fe2-456b-b830-072ddc348059.png)
**UC3. As I am a user, I want to swipe right to left to move an email
On thread-view, when I swipe right to left on email in my mailbox, I can see:
@@ -67,14 +58,19 @@ I see the email row is swiped as blue background color belong with "Move email i
AND System display the list of mailboxes wit checked icon belong to mailbox which include that email.
AND This email is moved to selected mailbox. System display a toast message.
```
GIVEN I'm a Tmail user
AND There are existed emails on my mailboxes
WHEN I swipe right to left on an email rows
THEN I see the email row is swiped as blue background color belong with "Move email icon"
AND System display a list mailbox dialog to let user select the email moving desitination
AND System display a checked icon belong to mailbox in the list which indicate user that email is in what mailbox at the moment
[Back to Summary](#summary)
## Screenshots:
![image](https://user-images.githubusercontent.com/124866146/235097306-615f0b87-5fe2-456b-b830-072ddc348059.png)
![image](https://user-images.githubusercontent.com/124866146/235097387-fb616f8f-ff50-4dfe-8e2b-44a5bca3aba4.png)
GIVEN I'm a Tmail user
WHEN I swipe right to left on an email rows
AND I select one mailbox in the list
THEN The email is moved with the toast message
```
![image](https://user-images.githubusercontent.com/124866146/236110914-0b53392a-161a-4f25-85d9-abb06706d82a.png)
@@ -83,9 +79,6 @@ AND This email is moved to selected mailbox. System display a toast message.
![image](https://user-images.githubusercontent.com/124866146/236111590-6d85c76f-e9ab-4128-ae11-060c3186085f.png)
[Back to Summary](#summary)
## Misc