()
| 61 | |
| 62 | // Reset view state before each test |
| 63 | async function resetViewState() { |
| 64 | deck!.setProps({ |
| 65 | initialViewState: { |
| 66 | longitude: -122, |
| 67 | latitude: 38, |
| 68 | zoom: 10, |
| 69 | pitch: 30, |
| 70 | bearing: -45 |
| 71 | } |
| 72 | }); |
| 73 | // Wait for any ongoing animations/transitions to complete |
| 74 | // Previous tests may have triggered zoom animations that need time to finish |
| 75 | await sleep(500); |
| 76 | } |
| 77 | |
| 78 | test('MapController pan', async () => { |
| 79 | await resetViewState(); |
no test coverage detected
searching dependent graphs…