Use do-not-kill-me-lib

This commit is contained in:
Torsten Grote
2022-02-25 10:37:10 -03:00
parent 7536f16c61
commit 784c7416ec
58 changed files with 289 additions and 406 deletions

View File

@@ -129,7 +129,7 @@ public class PromoVideoTest extends ScreenshotTest {
// White-list Doze if needed
if (needsDozeWhitelisting(getApplicationContext())) {
doClick(withText(R.string.setup_doze_button));
doClick(withText(R.string.dnkm_doze_button));
UiDevice device = UiDevice.getInstance(getInstrumentation());
UiObject allowButton = device.findObject(
new UiSelector().className("android.widget.Button")

View File

@@ -75,7 +75,7 @@ public class SetupDataTest extends ScreenshotTest {
// White-list Doze if needed
if (needsDozeWhitelisting(getApplicationContext())) {
onView(withText(R.string.setup_doze_button))
onView(withText(R.string.dnkm_doze_button))
.check(matches(isDisplayed()))
.perform(click());
UiDevice device = UiDevice.getInstance(getInstrumentation());