Activity gain focus failed in InputMethodStressTest

After the test is completed, the notification is not closed,
so that subsequent test cannot get the focus.

Close notification in tearDown to solve the issue.

Bug: 241723484
Test: run InputMethodStressTest pass

Change-Id: I876173e83488e18a884d8bc180f9681e726fff1d
This commit is contained in:
ot904697 2022-07-28 14:01:17 +08:00 committed by Robert Chou
parent 6040384899
commit 19a0a4ec91

View File

@ -102,6 +102,7 @@ public final class NotificationTest {
@After
public void tearDown() {
mNotificationManager.cancelAll();
mUiDevice.pressHome();
}
@Test