From ead348ec08d27973badadd6f67871508c4040b54 Mon Sep 17 00:00:00 2001 From: simonpoole Date: Tue, 10 Dec 2024 14:24:55 +0100 Subject: [PATCH] More test improvements --- .../java/de/blau/android/easyedit/RelationTest.java | 4 ++-- src/androidTest/java/de/blau/android/easyedit/WayTest.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/androidTest/java/de/blau/android/easyedit/RelationTest.java b/src/androidTest/java/de/blau/android/easyedit/RelationTest.java index 522c41381f..4d9f136335 100644 --- a/src/androidTest/java/de/blau/android/easyedit/RelationTest.java +++ b/src/androidTest/java/de/blau/android/easyedit/RelationTest.java @@ -232,8 +232,8 @@ public void rotateMultipolygon() { Way way = (Way) relation.getMembers().get(0).getElement(); Node n0 = way.getFirstNode(); - assertEquals(83881251, n0.getLon()); - assertEquals(473885077, n0.getLat()); + assertEquals(83881251, n0.getLon(), 300); + assertEquals(473885077, n0.getLat(), 300); if (!TestUtils.clickMenuButton(device, context.getString(R.string.menu_rotate), false, false)) { TestUtils.clickOverflowButton(device); TestUtils.clickText(device, false, context.getString(R.string.menu_rotate), false, false); diff --git a/src/androidTest/java/de/blau/android/easyedit/WayTest.java b/src/androidTest/java/de/blau/android/easyedit/WayTest.java index c3f63a8fe5..9b12513aa3 100644 --- a/src/androidTest/java/de/blau/android/easyedit/WayTest.java +++ b/src/androidTest/java/de/blau/android/easyedit/WayTest.java @@ -126,6 +126,7 @@ public void selectWay() { assertTrue(TestUtils.clickText(device, false, menuInfo, true, false)); assertTrue(TestUtils.findText(device, false, "asphalt")); assertTrue(TestUtils.clickText(device, false, context.getString(R.string.done), true, false)); + TestUtils.unlock(device); assertTrue(TestUtils.clickOverflowButton(device)); String menuDelete = context.getString(R.string.delete); TestUtils.scrollTo(menuDelete, false);