- Pause screenshots for now, results in a super large json response file
- Fix delay on send bottomsheet because of pumpAndSettle animation
- Fix issue with integration test runner script
This commit is contained in:
Blazebrain 2025-04-09 20:02:57 +01:00
parent c2e77c08a9
commit 26506a9692
4 changed files with 11 additions and 5 deletions

View file

@ -230,6 +230,7 @@ class CommonTestCases {
await Future.delayed(Duration(seconds: seconds));
Future<void> takeScreenshots(String screenshotName) async {
await (tester.binding as IntegrationTestWidgetsFlutterBinding).takeScreenshot(screenshotName);
// Pausing this for now
// await (tester.binding as IntegrationTestWidgetsFlutterBinding).takeScreenshot(screenshotName);
}
}

View file

@ -1 +0,0 @@
null

View file

@ -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) {

View file

@ -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")