Remove the Runs error counter for now
Keep the running indicator and Needs you flow, but remove the failed-count badge and its tab count plumbing until unseen-state behavior is addressed. Preserve the unfinished seen-state work separately. Verify application, Runs, attention and shell regressions.
This commit is contained in:
@@ -10,7 +10,7 @@ import '../core/transport/pipelines_client_test.dart' show FakeChannel;
|
||||
import 'pipelines_app_test.dart' show pumpApp, replyList;
|
||||
|
||||
void main() {
|
||||
testWidgets('both run counts update while another destination is visible', (
|
||||
testWidgets('running updates across tabs without restoring the error counter', (
|
||||
tester,
|
||||
) async {
|
||||
SharedPreferences.setMockInitialValues({});
|
||||
@@ -59,7 +59,7 @@ void main() {
|
||||
RunsDestinationIcon counts() =>
|
||||
tester.widget<RunsDestinationIcon>(find.byType(RunsDestinationIcon));
|
||||
expect(counts().running, 1);
|
||||
expect(counts().failed, 1);
|
||||
expect(find.byKey(const ValueKey('shell.badge.runs.failed')), findsNothing);
|
||||
expect(counts().attention, 2);
|
||||
|
||||
await tester.tap(find.byKey(const ValueKey('shell.destination.pipelines')));
|
||||
@@ -75,7 +75,7 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
expect(provider.value.uri.path, '/pipelines');
|
||||
expect(counts().running, 1);
|
||||
expect(counts().failed, 2);
|
||||
expect(find.byKey(const ValueKey('shell.badge.runs.failed')), findsNothing);
|
||||
// Waiting -> failed must repaint even though total attention is unchanged.
|
||||
expect(counts().attention, 2);
|
||||
|
||||
@@ -89,7 +89,7 @@ void main() {
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
expect(counts().running, 0);
|
||||
expect(counts().failed, 2);
|
||||
expect(find.byKey(const ValueKey('shell.badge.runs.failed')), findsNothing);
|
||||
expect(tester.takeException(), isNull);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user