From 275688dfb92bb2e47eef3ad06cc943e3b3821ae3 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Thu, 11 Feb 2021 10:50:27 +0100 Subject: [PATCH] updated flutter-drive.yml --- .github/workflows/flutter-drive.yml | 50 +++++++++++++++++++ .../webview_flutter_test.dart | 2 +- 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/.github/workflows/flutter-drive.yml b/.github/workflows/flutter-drive.yml index 1af01fee..4739baad 100644 --- a/.github/workflows/flutter-drive.yml +++ b/.github/workflows/flutter-drive.yml @@ -52,4 +52,54 @@ jobs: - name: "Run iOS Flutter Integration Test" run: | flutter pub get + flutter devices + ./scripts/test.sh $(ipconfig getifaddr en0) + + # id of job, a string that is unique to the "jobs" node above. + android_integration_test_drive: + # Creates a build matrix for your jobs. You can define different + # variations of an environment to run each job in. + strategy: + # A set of different configurations of the virtual + # environment. + # matrix: + # When set to true, GitHub cancels all in-progress jobs if any + # matrix job fails. + fail-fast: false + # The type of machine to run the job on. + runs-on: macOS-latest + # Contains a sequence of tasks. + steps: + # The branch or tag ref that triggered the workflow will be + # checked out. + # https://github.com/actions/checkout + - uses: actions/checkout@v2 + # Sets up android emulator + - name: "Android Emulator Runner" + uses: ReactiveCircus/android-emulator-runner@v2.14.3 + with: + api-level: 30 + target: google_apis + avd-name: Flutter-Android + # Sets up a flutter environment. + # https://github.com/marketplace/actions/flutter-action + - uses: subosito/flutter-action@v1.4.0 + with: + channel: 'dev' # 'stable' or 'dev' or 'beta' + - name: "Change Flutter channel to master" + run: | + flutter channel master + flutter upgrade + - uses: actions/setup-node@v2 + with: + node-version: '14' + - name: "Install npm dependencies" + run: | + cd ./nodejs_server_test_auth_basic_and_ssl + npm install + cd .. + - name: "Run iOS Flutter Integration Test" + run: | + flutter pub get + flutter devices ./scripts/test.sh $(ipconfig getifaddr en0) \ No newline at end of file diff --git a/example/integration_test/webview_flutter_test.dart b/example/integration_test/webview_flutter_test.dart index d6b4679f..bf5e432a 100644 --- a/example/integration_test/webview_flutter_test.dart +++ b/example/integration_test/webview_flutter_test.dart @@ -1625,6 +1625,7 @@ void main() { initialOptions: InAppWebViewGroupOptions( crossPlatform: InAppWebViewOptions( clearCache: true, + javaScriptCanOpenWindowsAutomatically: true, ) ), onWebViewCreated: (controller) { @@ -1657,7 +1658,6 @@ void main() { initialOptions: InAppWebViewGroupOptions( crossPlatform: InAppWebViewOptions( clearCache: true, - javaScriptCanOpenWindowsAutomatically: true, ) ), onWebViewCreated: (controller) {