diff --git a/integration_test/components/common_test_cases.dart b/integration_test/components/common_test_cases.dart index 78585423a..52a05add0 100644 --- a/integration_test/components/common_test_cases.dart +++ b/integration_test/components/common_test_cases.dart @@ -230,6 +230,7 @@ class CommonTestCases { await Future.delayed(Duration(seconds: seconds)); Future takeScreenshots(String screenshotName) async { - await (tester.binding as IntegrationTestWidgetsFlutterBinding).takeScreenshot(screenshotName); + // Pausing this for now + // await (tester.binding as IntegrationTestWidgetsFlutterBinding).takeScreenshot(screenshotName); } } diff --git a/integration_test/integration_response_data.json b/integration_test/integration_response_data.json deleted file mode 100644 index ec747fa47..000000000 --- a/integration_test/integration_response_data.json +++ /dev/null @@ -1 +0,0 @@ -null \ No newline at end of file diff --git a/integration_test/robots/send_page_robot.dart b/integration_test/robots/send_page_robot.dart index 5899696af..9dd913bf5 100644 --- a/integration_test/robots/send_page_robot.dart +++ b/integration_test/robots/send_page_robot.dart @@ -225,7 +225,7 @@ class SendPageRobot { await authPageRobot.enterPinCode(CommonTestConstants.pin, pumpDuration: 500); tester.printToConsole('Auth done'); - await tester.pumpAndSettle(); + await tester.pump(Duration(seconds: 3)); tester.printToConsole('Auth pump done'); } catch (e) { diff --git a/integration_test_runner.sh b/integration_test_runner.sh index 621376cf7..ad01a57ba 100755 --- a/integration_test_runner.sh +++ b/integration_test_runner.sh @@ -22,8 +22,13 @@ monitor_test() { break fi - # Check for log activity - local last_modified=$(stat -c %Y "$log_file") + # Check for log activity: use OS-specific flag for stat command + if [[ "$(uname)" == "Darwin" ]]; then + last_modified=$(stat -f %m "$log_file") + else + last_modified=$(stat -c %Y "$log_file") + fi + local current_time=$(date +%s) if (( current_time - last_modified > MAX_INACTIVITY )); then echo "❌ Test hung due to inactivity, terminating..." @@ -35,6 +40,7 @@ monitor_test() { return 0 } + # Collect all Dart test files in the integration_test directory while IFS= read -r -d $'\0' file; do targets+=("$file")