src/androidTest/java/de/blau/android/filter/PresetFilterTest.java
/**
     * Set preset filter to Church and select one
     */
Set preset filter to Church and select one
Set preset filter to Church and select one
@Test
    public void presetFilterSelect() {
        TestUtils.unlock(device);
        TestUtils.clickOverflowButton(device);
        TestUtils.clickText(device, false, main.getString(R.string.menu_enable_presetfilter), true, false);
        TestUtils.clickResource(device, false, device.getCurrentPackageName() + ":id/tagFilterButton", true);
        Activity presetFilterActivity = instrumentation.waitForMonitorWithTimeout(monitor, 30000);
        assertTrue(presetFilterActivity instanceof PresetFilterActivity);
        assertTrue(TestUtils.clickText(device, false, "Facilities", true));
        assertTrue(TestUtils.clickText(device, false, "Place of Worship", true, true));
        assertTrue(TestUtils.clickText(device, false, "Church", true));
        TestUtils.sleep(2000);
        TestUtils.clickAtCoordinates(device, main.getMap(), 8.38819D, 47.38961D);
        assertTrue(TestUtils.findText(device, false, main.getString(R.string.actionmode_wayselect), 5000));
        assertEquals(206010144L, App.getLogic().getSelectedWay().getOsmId());
        TestUtils.clickUp(device);
        TestUtils.clickOverflowButton(device);
        TestUtils.clickText(device, false, main.getString(R.string.menu_enable_presetfilter), true, false);
    }
@ Test public void presetFilterSelect ( ) { TestUtils . unlock ( device ) ; TestUtils . clickOverflowButton ( device ) ; TestUtils . clickText ( device , false , main . getString ( R . string . menu_enable_presetfilter ) , true , false ) ; TestUtils . clickResource ( device , false , device . getCurrentPackageName ( ) + ":id/tagFilterButton" , true ) ; Activity presetFilterActivity = instrumentation . waitForMonitorWithTimeout ( monitor , 30000 ) ; assertTrue ( presetFilterActivity instanceof PresetFilterActivity ) ; assertTrue ( TestUtils . clickText ( device , false , "Facilities" , true ) ) ; assertTrue ( TestUtils . clickText ( device , false , "Place of Worship" , true , true ) ) ; assertTrue ( TestUtils . clickText ( device , false , "Church" , true ) ) ; TestUtils . sleep ( 2000 ) ; TestUtils . clickAtCoordinates ( device , main . getMap ( ) , 8.38819D , 47.38961D ) ; assertTrue ( TestUtils . findText ( device , false , main . getString ( R . string . actionmode_wayselect ) , 5000 ) ) ; assertEquals ( 206010144L , App . getLogic ( ) . getSelectedWay ( ) . getOsmId ( ) ) ; TestUtils . clickUp ( device ) ; TestUtils . clickOverflowButton ( device ) ; TestUtils . clickText ( device , false , main . getString ( R . string . menu_enable_presetfilter ) , true , false ) ; }
Set preset filter to Church and select one
Set preset filter to Church and select one