Merge "Add ScreenRecord to methods affected by a flaky problem" into sc-v2-dev
This commit is contained in:
commit
fffea98399
|
@ -28,6 +28,7 @@ import com.android.launcher3.tapl.Widget;
|
|||
import com.android.launcher3.tapl.WidgetResizeFrame;
|
||||
import com.android.launcher3.ui.AbstractLauncherUiTest;
|
||||
import com.android.launcher3.ui.TestViewHelpers;
|
||||
import com.android.launcher3.util.rule.ScreenRecordRule.ScreenRecord;
|
||||
import com.android.launcher3.util.rule.ShellCommandRule;
|
||||
import com.android.launcher3.widget.LauncherAppWidgetProviderInfo;
|
||||
|
||||
|
@ -47,6 +48,7 @@ public class AddWidgetTest extends AbstractLauncherUiTest {
|
|||
|
||||
@Test
|
||||
@PortraitLandscape
|
||||
@ScreenRecord // b/204807156
|
||||
public void testDragIcon() throws Throwable {
|
||||
clearHomescreen();
|
||||
mDevice.pressHome();
|
||||
|
|
|
@ -45,6 +45,7 @@ import com.android.launcher3.tapl.Widget;
|
|||
import com.android.launcher3.tapl.Workspace;
|
||||
import com.android.launcher3.ui.AbstractLauncherUiTest;
|
||||
import com.android.launcher3.ui.TestViewHelpers;
|
||||
import com.android.launcher3.util.rule.ScreenRecordRule.ScreenRecord;
|
||||
import com.android.launcher3.util.rule.ShellCommandRule;
|
||||
import com.android.launcher3.widget.LauncherAppWidgetProviderInfo;
|
||||
import com.android.launcher3.widget.WidgetManagerHelper;
|
||||
|
@ -138,6 +139,7 @@ public class BindWidgetTest extends AbstractLauncherUiTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@ScreenRecord // b/204807156
|
||||
public void testPendingWidget_autoRestored() {
|
||||
// A non-restored widget with no config screen gets restored automatically.
|
||||
LauncherAppWidgetProviderInfo info = TestViewHelpers.findWidgetProvider(this, false);
|
||||
|
|
Loading…
Reference in New Issue