From b46fb472454e4b5d0ad42c7535396c40fb99dc1f Mon Sep 17 00:00:00 2001 From: Patrick Leonard Date: Fri, 30 Aug 2024 09:15:19 -0400 Subject: [PATCH] Updates test constant in gesture test (#2279) Co-authored-by: Release SDK bot for Maps SDK team --- Tests/GestureTests/Pinch/ZoomInPinchGesture.test.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tests/GestureTests/Pinch/ZoomInPinchGesture.test.swift b/Tests/GestureTests/Pinch/ZoomInPinchGesture.test.swift index 734434b03ff1..866460ab3b09 100644 --- a/Tests/GestureTests/Pinch/ZoomInPinchGesture.test.swift +++ b/Tests/GestureTests/Pinch/ZoomInPinchGesture.test.swift @@ -9,7 +9,7 @@ final class ZoomInPinchGestureTestCase: GestureTestCase { func testQuickZoomIn() async throws { try eventGenerator.fingerPinchOpen(duration: Constants.pinchDuration) - XCTAssertEqual(mapView.cameraState.zoom, 7.836, accuracy: 0.001) + XCTAssertEqual(mapView.mapboxMap.cameraState.zoom, 7.836, accuracy: 0.001) } /// Test that zoom-in gesture change nothing if changed distance is ≤ threshold @@ -20,7 +20,7 @@ final class ZoomInPinchGestureTestCase: GestureTestCase { toDistance: EventGenerator.pinchSmallDistance + Constants.pinchThreshold, duration: Constants.pinchDuration) - XCTAssertEqual(mapView.cameraState.zoom, 3) + XCTAssertEqual(mapView.mapboxMap.cameraState.zoom, 3) } /// Test that zooming-in happens if pinch gesture exceeds threshold by 1 point @@ -31,7 +31,7 @@ final class ZoomInPinchGestureTestCase: GestureTestCase { toDistance: EventGenerator.pinchSmallDistance + Constants.pinchThreshold + 1, duration: Constants.pinchDuration) - XCTAssertEqual(mapView.cameraState.zoom, 3.050, accuracy: 0.001) + XCTAssertEqual(mapView.mapboxMap.cameraState.zoom, 3.051, accuracy: 0.001) } /// Same as ``testZoomInNextAfterThreshold`` on city zoom level @@ -42,7 +42,7 @@ final class ZoomInPinchGestureTestCase: GestureTestCase { toDistance: EventGenerator.pinchSmallDistance + Constants.pinchThreshold + 1, duration: Constants.pinchDuration) - XCTAssertEqual(mapView.cameraState.zoom, 13.050, accuracy: 0.001) + XCTAssertEqual(mapView.mapboxMap.cameraState.zoom, 13.050, accuracy: 0.001) } /// Same as ``testZoomInNextAfterThresholdOnCloseZoom`` but for a few points instead of 1 @@ -54,6 +54,6 @@ final class ZoomInPinchGestureTestCase: GestureTestCase { toDistance: EventGenerator.pinchSmallDistance + Constants.pinchThreshold + 4, duration: Constants.pinchDuration) - XCTAssertEqual(mapView.cameraState.zoom, 13.192, accuracy: 0.001) + XCTAssertEqual(mapView.mapboxMap.cameraState.zoom, 13.192, accuracy: 0.001) } }