Fix the 11 failing application tests: two product fixes, stale fixtures

Product:
- Settings jump index scrolls instead of overflowing a short wide window
  (overflowed by 48 px at 1200x800 once Open in chat added a section).
- Chat: a route to the retained workspace's active pane shows it in the
  same frame again; ec3c1e4c deferred it a frame behind a post-frame callback.

Tests updated to intended behaviour:
- first-run walkthrough (30ba70ad): seed a device that has seen it and was
  offered it for the fixture server;
- Output section open by default (22af093e);
- chat page Back closes its own route explicitly (19b1d132);
- open-chat sync (c48a1559): answer chat_open_workspace statefully;
- keyed session list (0a51add9) no longer re-reads chat_sessions on open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-26 01:58:57 +00:00
parent fc5d3bc42b
commit 0e5a06ae88
9 changed files with 201 additions and 114 deletions
@@ -11,6 +11,7 @@ import 'package:pipelines_app/application/pipelines_app.dart';
import 'package:pipelines_app/application/server_endpoint.dart';
import 'package:pipelines_app/core/transport/pipelines_client.dart';
import 'package:pipelines_app/features/pipelines/screen.dart';
import 'package:pipelines_app/features/walkthrough/walkthrough_store.dart';
import '../core/transport/pipelines_client_test.dart' show FakeChannel;
import '../features/pipelines/fixtures.dart';
@@ -21,6 +22,15 @@ ServerEndpoint webServer() => ServerEndpoint.resolve(
web: true,
);
/// Preferences for a device that has finished the first-run walkthrough and
/// was already offered it for [webServer]. With them the Pipelines page shows
/// no walkthrough dialog over its rows and bar, and issues no empty-server
/// check (whose unanswered reads would hold the serialized request queue).
Map<String, Object> walkthroughDonePreferences() => {
walkthroughSeenKey: true,
walkthroughOfferedKey: <String>[webServer().uri.toString()],
};
Map<String, dynamic>? requestOf(FakeChannel channel, String type) => channel
.outgoing
.map((frame) => jsonDecode(frame as String) as Map<String, dynamic>)