Commit 91e4897
refactor(test): add scenario for overrideScrollViewContentInsetAdjustmentBehavior (iOS) (#3957)
## Description
This PR adds a manual test scenario for the
`overrideScrollViewContentInsetAdjustmentBehavior` prop on `TabsScreen`
(iOS). The scenario screen was already present in the codebase but
lacked `testID` and `tabBarItemTestID` / `tabBarItemAccessibilityLabel`
attributes needed to make it addressable by automated tests, and had no
accompanying `scenario.md` document.
The screen has been refactored into its own directory
(`test-tabs-override-scroll-view-content-inset-ios/`) to follow the
convention used by other tab test scenarios, and the scenario key has
been updated to match the new directory name. The `scenario.md` covers
three distinct cases - `false`, `true`, and the default (prop omitted).
No automated e2e test is included in this PR; the scenario is marked as
ongoing research.
Closes:
software-mansion/react-native-screens-labs#1210
## Changes
- **Test/Tabs**: Renamed and moved
`override-scroll-view-content-inset.tsx` into a new
`test-tabs-override-scroll-view-content-inset-ios/` directory with an
`index.tsx` entry point, aligning with the naming convention of sibling
test scenarios
- **Test/Tabs**: Updated the scenario `key` from
`override-scroll-view-content-inset` to
`test-tabs-override-scroll-view-content-inset-ios` to match the new
directory name
- **Test/Tabs**: Added `testID` props to each `ScrollView`
(`override-inset-false-scrollview`, `override-inset-true-scrollview`,
`override-inset-default-scrollview`) and `tabBarItemTestID` /
`tabBarItemAccessibilityLabel` to each tab entry to make them
individually addressable by future automated tests
- **Test/Tabs**: Added `scenario.md` with a full step-by-step manual
verification guide covering all three
`overrideScrollViewContentInsetAdjustmentBehavior` states and a
cross-tab comparison section
- **Test/index**: Updated the tabs scenario index to import from the new
module path and export under the new scenario name
`TestTabsOverrideScrollViewContentInset`
## Scenario video
Note: scenario was updated - now we first scroll down and in next step
scroll to top.
https://github.com/user-attachments/assets/bd5aef4b-72e1-4ba7-bdf5-be2f0c896c6e
---------
Co-authored-by: Tomasz Boroń <[email protected]>1 parent 7b4b6d6 commit 91e4897
3 files changed
Lines changed: 167 additions & 10 deletions
File tree
- apps/src/tests/single-feature-tests/tabs
- test-tabs-override-scroll-view-content-inset-ios
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | | - | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
39 | | - | |
40 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
41 | 52 | | |
42 | 53 | | |
43 | | - | |
44 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
45 | 61 | | |
46 | 62 | | |
47 | 63 | | |
48 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
49 | 70 | | |
50 | 71 | | |
51 | 72 | | |
| |||
59 | 80 | | |
60 | 81 | | |
61 | 82 | | |
| 83 | + | |
62 | 84 | | |
63 | 85 | | |
64 | 86 | | |
| |||
70 | 92 | | |
71 | 93 | | |
72 | 94 | | |
| 95 | + | |
73 | 96 | | |
74 | 97 | | |
75 | 98 | | |
| |||
81 | 104 | | |
82 | 105 | | |
83 | 106 | | |
| 107 | + | |
84 | 108 | | |
85 | 109 | | |
86 | 110 | | |
| |||
Lines changed: 133 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
0 commit comments