From df02e6185077bad86cae2d65dc42da8e9d81ac0d Mon Sep 17 00:00:00 2001 From: simonpoole Date: Mon, 30 Oct 2023 16:13:23 +0100 Subject: [PATCH] Add display of info dialog to test. --- .../java/de/blau/android/photos/PhotosTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/androidTest/java/de/blau/android/photos/PhotosTest.java b/src/androidTest/java/de/blau/android/photos/PhotosTest.java index e77ea379ae..6c1a770998 100644 --- a/src/androidTest/java/de/blau/android/photos/PhotosTest.java +++ b/src/androidTest/java/de/blau/android/photos/PhotosTest.java @@ -128,12 +128,17 @@ public void teardown() { */ // @SdkSuppress(minSdkVersion = 26) @Test - public void selectDisplayDelete() { + public void selectDisplayInfoDelete() { addLayerAndIndex(); TestUtils.unlock(device); assertEquals(2, App.getPhotoIndex().count()); TestUtils.clickAtCoordinates(device, main.getMap(), 7.5886112, 47.5519448, true); + TestUtils.clickMenuButton(device, context.getString(R.string.menu_information), false, true); + assertTrue(TestUtils.findText(device, false, context.getString(R.string.image_information_title))); + TestUtils.sleep(20000); + assertTrue(TestUtils.clickText(device, false, context.getString(R.string.done),true, false)); + TestUtils.clickMenuButton(device, context.getString(R.string.delete), false, true); assertTrue(TestUtils.clickText(device, false, context.getString(R.string.photo_viewer_delete_button), true, false));