Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 51d0844

Browse files
authored
[quick_actions] Fix Android integration test flake (#6688)
* Make fix * Formatting
1 parent 89cbf74 commit 51d0844

File tree

1 file changed

+1
-5
lines changed
  • packages/quick_actions/quick_actions_android/example/android/app/src/androidTest/java/io/flutter/plugins/quickactionsexample

1 file changed

+1
-5
lines changed

packages/quick_actions/quick_actions_android/example/android/app/src/androidTest/java/io/flutter/plugins/quickactionsexample/QuickActionsTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.junit.After;
2929
import org.junit.Assert;
3030
import org.junit.Before;
31-
import org.junit.Ignore;
3231
import org.junit.Test;
3332
import org.junit.runner.RunWith;
3433

@@ -86,9 +85,6 @@ public void appShortcutsAreCreated() {
8685
}
8786
}
8887

89-
// TODO(bparrishMines): The test is ignored because it fails when ran on Firebase Test Lab. See
90-
// https://github.com/flutter/flutter/issues/114246.
91-
@Ignore
9288
@Test
9389
public void appShortcutLaunchActivityAfterStarting() {
9490
// Arrange
@@ -119,7 +115,7 @@ public void appShortcutLaunchActivityAfterStarting() {
119115
"AppShortcut:" + firstShortcut.getId() + " does not launch the correct activity",
120116
// We can only find the shortcut type in content description while inspecting it in Ui
121117
// Automator Viewer.
122-
device.hasObject(By.desc(firstShortcut.getId() + appReadySentinel)));
118+
device.hasObject(By.descContains(firstShortcut.getId() + appReadySentinel)));
123119
// This is Android SingleTop behavior in which Android does not destroy the initial activity and
124120
// launch a new activity.
125121
Assert.assertEquals(initialActivity.get(), currentActivity.get());

0 commit comments

Comments
 (0)