Skip to content

Commit

Permalink
chore: fix running web e2e tests script (#13314)
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley authored and Lyokone committed Dec 4, 2024
1 parent fe016a4 commit 801d3ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ scripts:
test:e2e:web:
run: |
melos exec -c 1 --fail-fast -- \
"flutter drive --target=./integration_test/e2e_test.dart --driver=./test_driver/integration_test.dart -d chrome --dart-define=APP_CHECK_E2E=true"
"flutter drive --target=./integration_test/e2e_test.dart --driver=./test_driver/integration_test.dart -d chrome --dart-define=LOCAL_WEB_E2E=true"
description: |
Run all e2e tests on web platform. Please ensure you have "chromedriver" installed and running.
packageFilters:
Expand Down
7 changes: 7 additions & 0 deletions tests/integration_test/e2e_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();

group('FlutterFire', () {
// ignore: do_not_use_environment
if (const String.fromEnvironment('LOCAL_WEB_E2E') == 'true') {
// for running web e2e locally which doesn't suffer throttling issues
runAllTests();
return;
}

// ignore: do_not_use_environment
if (const String.fromEnvironment('APP_CHECK_E2E') == 'true') {
// app check has been separated out for web due to throttling issues
Expand Down

0 comments on commit 801d3ab

Please sign in to comment.