From 64347545c22a9ec2214cd3dac3f115bf21f229d7 Mon Sep 17 00:00:00 2001 From: pdenert Date: Thu, 31 Oct 2024 15:25:32 +0100 Subject: [PATCH] Fix clearing to many lines when test steps are disabled --- packages/patrol_log/lib/src/patrol_log_reader.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/patrol_log/lib/src/patrol_log_reader.dart b/packages/patrol_log/lib/src/patrol_log_reader.dart index 14f40d612..f60d843d1 100644 --- a/packages/patrol_log/lib/src/patrol_log_reader.dart +++ b/packages/patrol_log/lib/src/patrol_log_reader.dart @@ -124,9 +124,6 @@ class PatrolLogReader { final lastEntry = _singleEntries.last; lastEntry.entries.add(entry); } else { - if (entry is StepEntry && entry.status == StepEntryStatus.start) { - stepsCounter++; - } final lastEntry = _singleEntries.last; lastEntry.entries.add(entry); } @@ -145,6 +142,8 @@ class PatrolLogReader { if (showTestSteps) { if (entry.status != StepEntryStatus.start) { _clearPreviousLine(); + } else { + stepsCounter++; } log(entry.pretty(number: stepsCounter)); }