Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
18e6d22
lets see if integration tests run
bparrishMines Jul 8, 2021
2025b84
change folder name
bparrishMines Jul 12, 2021
ddf5d91
create a running test with ./gradlew app:connectedAndroidTest -Ptarge…
bparrishMines Jul 13, 2021
562cc4d
see if tests run on ci?.
bparrishMines Jul 14, 2021
cad641b
fix a few tests
bparrishMines Jul 17, 2021
b94cfbb
try get all tests passing
bparrishMines Jul 17, 2021
744c395
fluttertestrunner and placeholder test
bparrishMines Jul 18, 2021
6d9f282
formatting
bparrishMines Jul 18, 2021
e5ea80c
fix blank test, formatting, license
bparrishMines Jul 18, 2021
2489c44
undo formatting change and remove navigation delegate
bparrishMines Jul 18, 2021
76d612e
Improve example test and version bump test dependencies
bparrishMines Jul 19, 2021
dc6be9a
remove assertequals
bparrishMines Jul 19, 2021
8713690
small format changes
bparrishMines Jul 19, 2021
648e94c
license
bparrishMines Jul 19, 2021
3619762
remove truth dependency, change core dep and follow example
bparrishMines Jul 19, 2021
ffe0058
undo the test change
bparrishMines Jul 19, 2021
f624087
Merge branch 'master' of github.com:flutter/plugins into androidTest
bparrishMines Jul 20, 2021
a10bfde
readd analysisoptions
bparrishMines Jul 20, 2021
42b7238
remove top line
bparrishMines Jul 20, 2021
927b9fe
empty commit to check for flakes
bparrishMines Jul 20, 2021
089fa76
skip tests
bparrishMines Jul 22, 2021
77b45f1
Merge branch 'master' of github.com:flutter/plugins into androidTest
bparrishMines Jul 22, 2021
7e73bb1
remove webview_flutter
bparrishMines Jul 22, 2021
79d82c4
Merge branch 'master' of github.com:flutter/plugins into androidTest
bparrishMines Jul 22, 2021
d34c705
Merge branch 'master' into androidTest
bparrishMines Jul 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
see if tests run on ci?.
  • Loading branch information
bparrishMines committed Jul 14, 2021
commit 562cc4d043b69815d37a6ff9920d49386c8d2e1d
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,38 @@
import static androidx.test.espresso.flutter.matcher.FlutterMatchers.isExisting;
import static androidx.test.espresso.flutter.matcher.FlutterMatchers.withValueKey;
import androidx.test.core.app.ActivityScenario;
import androidx.test.rule.ActivityTestRule;
import androidx.test.runner.AndroidJUnit4;

import dev.flutter.plugins.integration_test.FlutterTestRunner;
import io.flutter.embedding.android.FlutterActivity;

import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.runner.RunWith;

import org.junit.Test;

@RunWith(AndroidJUnit4.class)
@RunWith(FlutterTestRunner.class)
public class MainActivityTest {
ActivityScenario<FlutterActivity> scenario;
//ActivityScenario<FlutterActivity> scenario;

@Rule
public final ActivityTestRule<FlutterActivity> rule = new ActivityTestRule<>(FlutterActivity.class);

@Before
public void setup() {
scenario = ActivityScenario.launch(FlutterActivity.class);
//scenario = ActivityScenario.launch(FlutterActivity.class);
}

@After
public void cleanup() {
scenario.close();
//scenario.close();
}

@Test
public void testWebViewViewIsAddedToTree() {
onFlutterWidget(withValueKey("example_webView")).check(matches(isExisting()));
//onFlutterWidget(withValueKey("example_webView")).check(matches(isExisting()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ void main() {
await pageLoaded.future;
final String? currentUrl = await controller.currentUrl();
expect(currentUrl, 'about:blank');
});
}, skip: true);

testWidgets(
'can open new window and go back',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the weird bug where pageLoaded.complete() was called in the callback multiple times. From the Dart side, this caused a silent error and prevented the rest of the method calls from going through.

Expand Down