You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/src/tests/single-feature-tests/tabs/test-tabs-more-navigation-controller/scenario.md
+15-17Lines changed: 15 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,15 +18,13 @@ Other: Ongoing research.
18
18
19
19
- On iPad: The More tab only appears when the window is resized to a compact width size class. For iOS 18 and older, a Split View must be triggered to achieve this.
20
20
21
-
- Toasts: A new toast should appear only after the steps where the "Expected" section explicitly mentions it.
22
-
23
-
- DevTools: On the focused device, press Shift+Cmd+D and select 'Open DevTools' from the menu. To view the logs relevant to this scenario, filter the console output by `TabSelected`.
21
+
- Toasts: A blue toast with the message `onTabSelected:"<selected tab name>"` should appear after each tab selection - except when the More tab list is displayed (which triggers a green `onMoreTabSelected` toast instead). In this scenario, this action is only mentioned in steps involving non-intuitive situations.
24
22
25
23
## Steps - iPhone
26
24
27
25
### Baseline
28
26
29
-
1. Launch the app and navigate to the **More navigation controller** scenario. Open DevTools.
27
+
1. Launch the app and navigate to the **More navigation controller** scenario.
30
28
31
29
-[ ] Expected: Tab bar shows **First**, **Second**, **Third**, **Fourth**, and **More**. The **First** tab is selected. The content area displays `First` as the route key.
32
30
@@ -36,19 +34,19 @@ Other: Ongoing research.
36
34
37
35
2. Tap the **More** tab in the tab bar.
38
36
39
-
-[ ] Expected: The native More screen opens, listing **Fifth** and **Sixth** as available tabs. A green toast appears at the bottom with the message onMoreTabSelected. In the console, the onMoreTabSelected event should be logged with selectedScreenKey,provenance and target values corresponding to last onTabSelected event.
37
+
-[ ] Expected: The native More screen opens, listing **Fifth** and **Sixth** as available tabs. A green toast appears at the bottom with the message `onMoreTabSelected`.
40
38
41
39
3. Tap **Fifth** in the More screen list.
42
40
43
-
-[ ] Expected: The **Fifth** tab content is shown. The route key label reads `Fifth`. The More tab remains selected in the tab bar. No new onMoreTabSelected event appears in the console log.
41
+
-[ ] Expected: The **Fifth** tab content is shown. The route key label reads `Fifth`. The More tab remains selected in the tab bar.
44
42
45
43
4. Tap **Third** tab in the tab bar.
46
44
47
45
-[ ] Expected: **Third** tab becomes active. Tab bar selection updates, and the route key label reads `Third`.
48
46
49
47
5. Tap the **More** tab in the tab bar.
50
48
51
-
-[ ] Expected: The Fifth tab content is displayed, and the route key label reads `Fifth`. The Tab Bar updates to show that the More tab is selected. No new onMoreTabSelected event appears in the console log.
49
+
-[ ] Expected: The Fifth tab content is displayed, and the route key label reads `Fifth`. The Tab Bar updates to show that the More tab is selected.
52
50
53
51
6. Tap the **More** tab again.
54
52
@@ -70,7 +68,7 @@ Other: Ongoing research.
70
68
71
69
-[ ] Expected: **Fifth** tab content is shown, and the route key label reads `Fifth`. The More tab is selected in the tab bar. No crash or blank screen.
72
70
73
-
1. Tap **"Select First"** and then tap **"Select Sixth"**.
71
+
10. Tap **"Select First"** and then tap **"Select Sixth"**.
74
72
75
73
-[ ] Expected: **Sixth** tab content is shown, and the route key label reads `Sixth`. The More tab is selected in the tab bar.
76
74
@@ -92,23 +90,23 @@ Other: Ongoing research.
92
90
93
91
2. Navigate between tabs using tab items from tab bar.
94
92
95
-
-[ ] Expected: Each transition updates the route key label and tab bar selection correctly. No visual glitches or stale route key labels. No onMoreTabSelected event appears in the console log.
93
+
-[ ] Expected: Each transition updates the route key label and tab bar selection correctly. No visual glitches or stale route key labels.
96
94
97
95
3. Navigate between tabs using buttons from screen.
98
96
99
-
-[ ] Expected: Each transition updates the route key label and tab bar selection correctly. No visual glitches or stale route key labels. No onMoreTabSelected event appears in the console log.
97
+
-[ ] Expected: Each transition updates the route key label and tab bar selection correctly. No visual glitches or stale route key labels.
100
98
101
99
---
102
100
103
101
### More tab — tap interaction with app resizing
104
102
105
103
4. Select `First` tab and resize app to iPhone size view.
106
104
107
-
-[ ] Expected: Tab bar shows **First**, **Second**, **Third**, **Fourth**, and **More**. The **First** tab is selected. The content area displays `First` as the route key. No onMoreTabSelected event appears in the console log.
105
+
-[ ] Expected: Tab bar shows **First**, **Second**, **Third**, **Fourth**, and **More**. The **First** tab is selected. The content area displays `First` as the route key.
108
106
109
107
5. Tap the **More** tab in the tab bar.
110
108
111
-
-[ ] Expected: The native More screen opens, listing **Fifth** and **Sixth** as available tabs. A green toast appears at the bottom with the message onMoreTabSelected. In the console, the onMoreTabSelected event should be logged with selectedScreenKey,provenance and target values corresponding to last onTabSelected event.
109
+
-[ ] Expected: The native More screen opens, listing **Fifth** and **Sixth** as available tabs. A green toast appears at the bottom with the message `onMoreTabSelected`.
112
110
113
111
6. Tap **Fifth** in the More screen list.
114
112
@@ -120,17 +118,17 @@ Other: Ongoing research.
120
118
121
119
8. Tap the **More** tab in the tab bar.
122
120
123
-
-[ ] Expected: The **Fifth** tab content is shown. The route key label reads `Fifth`. Tab bar selection updates - More tab is selected. No onMoreTabSelected event appears in the console log.
121
+
-[ ] Expected: The **Fifth** tab content is shown. The route key label reads `Fifth`. Tab bar selection updates - More tab is selected.
124
122
125
123
9. Tap the **More** tab again.
126
124
127
125
-[ ] Expected: The native More screen opens, listing **Fifth** and **Sixth** as available tabs. New green toast appear with `onMoreTabSelected` message.
128
126
129
127
10. Tap **Second** tab in the tab bar.
130
128
131
-
-[ ] Expected: **Second** tab becomes active. Tab bar selection updates, and the route key label reads `Second`. In the console, the onTabSelected event should be logged with selectedScreenKey set to 'Second'.
129
+
-[ ] Expected: **Second** tab becomes active. Tab bar selection updates, and the route key label reads `Second`. A blue toast appears at the bottom with the message `onTabSelected:"Second"`.
132
130
133
-
11. Tap **"More"** tab bar item and select **"Sixth"** from the More list.
131
+
11.Tap **"More"** tab bar item and select **"Sixth"** from the More list.
134
132
135
133
-[ ] Expected: **Sixth** tab content is shown, and the route key label reads `Sixth`. The More tab is selected in the tab bar. No crash or blank screen.
136
134
@@ -140,9 +138,9 @@ Other: Ongoing research.
140
138
141
139
13. Resize app to full size.
142
140
143
-
-[ ] Expected: The More tab disappears, and the tab bar shows all six tabs at the top of the screen. The **Second** tab becomes active, and the route key label reads `Second`. In the console, the onTabSelected event should be logged with selectedScreenKey set to 'Second', taget set to the same value as in step 11, and provenance increased by 2.
141
+
-[ ] Expected: The More tab disappears, and the tab bar shows all six tabs at the top of the screen. The **Second** tab becomes active, and the route key label reads `Second`.
144
142
145
-
14. Select **Third** tab and switch to **Fifth**
143
+
14.Select **Third** tab and switch to **Fifth**
146
144
147
145
-[ ] Expected: **Fifth** tab is selected, and the route key label reads `Fifth`.
0 commit comments