Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
elliette committed Sep 19, 2023
1 parent 482abfd commit 70fca2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dwds/test/puppeteer/extension_common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import 'package:test/test.dart';
import 'package:test_common/test_sdk_configuration.dart';
import 'package:test_common/utilities.dart';

import '../../debug_extension_mv3/web/background.dart';
import '../../debug_extension_mv3/web/data_serializers.dart';
import '../../debug_extension_mv3/web/data_types.dart';
import '../fixtures/context.dart';
Expand Down Expand Up @@ -969,7 +970,7 @@ Future<bool> _waitForDartDetection({
}) {
final source =
hasServiceWorker ? ConsoleSource.worker : ConsoleSource.background;
return waitForConsoleLog('Dart app detected.', source: source);
return waitForConsoleLog(dartAppDetectedMsg, source: source);
}

Future<bool> _clickLaunchButton(
Expand Down
1 change: 1 addition & 0 deletions dwds/test/puppeteer/test_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ Future<bool> waitForConsoleLog(
logs = _workerLogs;
break;
}
print('!!!! Looking for $textToMatch in ${logs.join('')}');
final foundText = logs.where((log) => log.contains(textToMatch)).isNotEmpty;
if (foundText) {
return true;
Expand Down

0 comments on commit 70fca2a

Please sign in to comment.