Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix running web e2e tests script locally #13314

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,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
Loading