diff --git a/.github/workflows/integration_test.yaml b/.github/workflows/integration_test.yaml index f91633d..eeecb46 100644 --- a/.github/workflows/integration_test.yaml +++ b/.github/workflows/integration_test.yaml @@ -82,3 +82,22 @@ jobs: - name: Run Flutter Integration tests working-directory: example run: flutter test integration_test -d macos + + drive_web: + name: Web + runs-on: ubuntu-latest + timeout-minutes: 15 + permissions: + contents: read + steps: + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + - uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # v2.21.0 + with: + channel: stable + cache: true + - uses: nanasess/setup-chromedriver@5ff44aa4cd179b6eac920e1146ac199e29bbad15 # v2 + - name: Start chromedriver + run: chromedriver --port=4444 & + - name: Run Flutter Integration tests + working-directory: example + run: flutter drive --driver=test_driver/integration_test.dart --target=integration_test/app_test.dart -d web-server \ diff --git a/example/integration_test/app_test.dart b/example/integration_test/app_test.dart index 9734878..47a6340 100644 --- a/example/integration_test/app_test.dart +++ b/example/integration_test/app_test.dart @@ -2,9 +2,9 @@ import 'package:flutter/foundation.dart' show kIsWeb, defaultTargetPlatform, TargetPlatform; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; +import 'package:image/image.dart' as img; import 'package:integration_test/integration_test.dart'; import 'package:platform_image_converter/platform_image_converter.dart'; -import 'package:image/image.dart' as img; void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); @@ -281,7 +281,7 @@ void main() { quality: 100, ), throwsA(isA()), - reason: 'WebP output is only supported on Android', + reason: 'WebP output is only supported on Android and Web.', ); } }); @@ -318,7 +318,7 @@ void main() { quality: 50, ), throwsA(isA()), - reason: 'WebP output is only supported on Android', + reason: 'WebP output is only supported on Android and Web.', ); } }, @@ -373,7 +373,7 @@ void main() { quality: 100, ), throwsA(isA()), - reason: 'WebP output is only supported on Android', + reason: 'WebP output is only supported on Android and Web.', ); } }); @@ -415,7 +415,7 @@ void main() { format: OutputFormat.webp, ), throwsA(isA()), - reason: 'WebP output should be unsupported on Web, iOS, and macOS', + reason: 'WebP output is not supported on this platform.', ); } });