mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
fix:
- 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:
parent
c2e77c08a9
commit
26506a9692
4 changed files with 11 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
null
|
|
@ -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) {
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue