Skip to content

Commit

Permalink
Add display of info dialog to test.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Nov 8, 2023
1 parent 8dde9f8 commit df02e61
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/androidTest/java/de/blau/android/photos/PhotosTest.java
Expand Up @@ -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));

Expand Down

0 comments on commit df02e61

Please sign in to comment.