(options: { hiddenBelow: boolean; message: string })
| 200 | }); |
| 201 | |
| 202 | function makeScrollSnapshot(options: { hiddenBelow: boolean; message: string }) { |
| 203 | return { |
| 204 | backend: 'xctest' as const, |
| 205 | nodes: [ |
| 206 | { |
| 207 | index: 1, |
| 208 | type: 'ScrollView', |
| 209 | label: 'Messages', |
| 210 | hiddenContentBelow: options.hiddenBelow ? true : undefined, |
| 211 | rect: { x: 0, y: 100, width: 400, height: 600 }, |
| 212 | }, |
| 213 | { |
| 214 | index: 2, |
| 215 | parentIndex: 1, |
| 216 | type: 'Button', |
| 217 | label: options.message, |
| 218 | rect: { x: 0, y: 640, width: 400, height: 56 }, |
| 219 | }, |
| 220 | ], |
| 221 | truncated: false, |
| 222 | }; |
| 223 | } |
no outgoing calls
no test coverage detected