Skip to content

Commit d402b7c

Browse files
Add flows for navigating and interacting with the Inbox, that cover important sentry spans
1 parent 5b50cdc commit d402b7c

5 files changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# @desc From the Inbox tab, open the FAB actions menu and tap "Create expense". Triggers the ManualOpenCreateExpense Sentry span (startMoneyRequest -> IOURequestStart/Participants/Confirmation page). Assumes the user is signed in and the Inbox bottom nav with the floating action button is visible.
2+
# @pre text="Inbox"
3+
# @pre role="button" label="Open actions menu"
4+
# @post role="button" label="Create expense"
5+
# @tag iou
6+
# @tag navigation
7+
# @tag perf
8+
# @span ManualOpenCreateExpense
9+
find "Inbox" "click"
10+
press "role=\"button\" label=\"Open actions menu\" || label=\"Open actions menu\""
11+
press "role=\"button\" label=\"Create expense\" || label=\"Create expense\""
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# @desc Open the SearchRouter from the Inbox tab. Triggers the ManualOpenSearchRouter Sentry span (Search button tap -> SearchRouterPage visible). Assumes the user is signed in.
2+
# @pre role="button" label="Inbox"
3+
# @pre role="button" label="Search"
4+
# @post text="SearchRouterPage"
5+
# @post role="text-field" label="Search for something"
6+
# @tag navigation
7+
# @tag perf
8+
# @tag search
9+
# @span ManualOpenSearchRouter
10+
press "role=\"button\" label=\"Inbox\" || label=\"Inbox\""
11+
press "role=\"button\" label=\"Search\" || label=\"Search\""
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# @desc From the Inbox tab, open the first chat in the LHN, type a message and send it. Triggers the ManualSendMessage Sentry span (Send press -> optimistic message fragment rendered). Assumes the user is signed in with at least one chat in the Inbox.
2+
# @pre text="Inbox"
3+
# @post role="textview" label="Write something..."
4+
# @param message=Hello from agent-device ManualSendMessage flow
5+
# @tag chat
6+
# @tag navigation
7+
# @tag perf
8+
# @span ManualSendMessage
9+
find "Inbox" "click"
10+
find "Navigates to a chat" "click"
11+
fill "id=\"composer\" || role=\"textview\" label=\"Write something...\" editable=true || label=\"Write something...\" editable=true" "Hello from agent-device ManualSendMessage flow"
12+
press "role=\"button\" label=\"Send\" || label=\"Send\""
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# @desc Switch the bottom navigation tab from Home to Inbox. Triggers the ManualNavigateToInboxTab Sentry span end-to-end (BottomTab click -> Inbox layout completion). Assumes the user is signed in and the bottom nav bar is visible.
2+
# @pre role="button" label="Home"
3+
# @pre role="button" label="Inbox"
4+
# @post text="Inbox"
5+
# @tag navigation
6+
# @tag perf
7+
# @span ManualNavigateToInboxTab
8+
press "role=\"button\" label=\"Home\" || label=\"Home\""
9+
press "role=\"button\" label=\"Inbox\" || label=\"Inbox\""
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# @desc Switch the bottom navigation tab from Home to Reports. Triggers the ManualNavigateToReports Sentry span end-to-end (BottomTab click -> Reports screen layout completion). Assumes the user is signed in and the bottom nav bar is visible.
2+
# @pre role="button" label="Home"
3+
# @pre role="button" label="Reports"
4+
# @post text="Reports"
5+
# @tag navigation
6+
# @tag perf
7+
# @span ManualNavigateToReports
8+
press "role=\"button\" label=\"Home\" || label=\"Home\""
9+
press "role=\"button\" label=\"Reports\" || label=\"Reports\""

0 commit comments

Comments
 (0)