# Conflicts:
#	app/lib/features/chat/ui/transcript/chat_markdown_view.dart
This commit is contained in:
2026-11-21 17:11:45 +00:00
23 changed files with 1267 additions and 43 deletions
+12
View File
@@ -1,5 +1,6 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:pipelines_app/application/app_route.dart';
import 'package:pipelines_app/core/servers/chat/chat_identity.dart';
void main() {
test('parses artifact deep links and preserves escaped path', () {
@@ -177,6 +178,9 @@ void main() {
'/chat/a/b',
'/chat/%2F',
'/chat/${'x' * 201}',
'/chat/chat@',
'/chat/chat@not-base64',
'/chat/${federatedChatId('mac', 'bad id')}',
'/unknown',
'/runs/%E0%A4%A',
]) {
@@ -201,6 +205,7 @@ void main() {
AppRoute.run.stage(3, 'build', visit: 4),
AppRoute.chat,
AppRoute.chatSession('probe_open-1'),
AppRoute.chatSession(federatedChatId('mac', 'ses_abc-1')),
AppRoute.search,
AppRoute.settings,
AppRoute.templates,
@@ -214,6 +219,13 @@ void main() {
expect(AppRoute.run(3).path, '/runs/3');
expect(AppRoute.chatSession('probe_open-1').path, '/chat/probe_open-1');
expect(AppRoute.chatSession('bad id').path, '/chat');
// A machine-scoped id (several machines connected) keeps its session.
final scoped = federatedChatId('mac', 'ses_abc-1');
expect(AppRoute.chatSession(scoped).chatSessionId, scoped);
expect(
AppRoute.parse(AppRoute.chatSession(scoped).path).chatSessionId,
scoped,
);
expect(AppRoute.templates.path, '/templates');
});