|
1 | 1 | import 'dart:async'; |
| 2 | +import 'package:buzz/features/channels/me/me_assistant_list.dart'; |
2 | 3 | import 'package:buzz/features/channels/compose_bar.dart'; |
3 | 4 | import 'package:buzz/shared/me/default_agent.dart'; |
4 | 5 | import 'package:shared_preferences/shared_preferences.dart'; |
@@ -288,7 +289,7 @@ void main() { |
288 | 289 | expect(find.text('Mobile app'), findsWidgets); |
289 | 290 | await tester.tap(find.byKey(const ValueKey('new-session-project'))); |
290 | 291 | await tester.pumpAndSettle(); |
291 | | - await tester.tap(find.text('Chats').last); |
| 292 | + await tester.tap(find.text('No Workspace').last); |
292 | 293 | await tester.pumpAndSettle(); |
293 | 294 | await tester.tap(find.text('Create chat')); |
294 | 295 | await tester.pumpAndSettle(); |
@@ -390,10 +391,20 @@ void main() { |
390 | 391 | expect(agentAction.label, 'Agent: Owner Name'); |
391 | 392 | expect(agentAction.sharesBackground, isFalse); |
392 | 393 | final workspaceAction = chatBar.nativeActions!.first; |
393 | | - expect(workspaceAction.label, 'Workspace: Chats'); |
394 | | - expect(workspaceAction.icon, BuzzIcons.folder); |
| 394 | + expect(workspaceAction.label, 'Workspace: No Workspace'); |
| 395 | + expect(workspaceAction.icon, BuzzIcons.workspace); |
395 | 396 | expect(workspaceAction.children.first.selected, isTrue); |
396 | 397 | expect(workspaceAction.sharesBackground, isFalse); |
| 398 | + agentAction.onPressed!(); |
| 399 | + await tester.pumpAndSettle(); |
| 400 | + expect(find.byType(BottomSheet), findsOneWidget); |
| 401 | + expect( |
| 402 | + tester.getSize(find.byType(MeAssistantList)).height, |
| 403 | + lessThan(200), |
| 404 | + ); |
| 405 | + await tester.tap(find.text('Owner Name').last); |
| 406 | + await tester.pumpAndSettle(); |
| 407 | + expect(find.byType(BottomSheet), findsNothing); |
397 | 408 | workspaceAction.children.last.onPressed!(); |
398 | 409 | await tester.pumpAndSettle(); |
399 | 410 | expect( |
|
0 commit comments