fix: expose project registration and align Linux app id

This commit is contained in:
Hamza Ayed
2026-10-04 02:20:09 +03:00
parent 5ab7ec2713
commit ddfb26c14f
5 changed files with 90 additions and 2 deletions
@@ -182,6 +182,39 @@ void main() {
await chatCubit.close();
});
testWidgets('project registration stays visible when sidebar is hidden', (
tester,
) async {
tester.view.physicalSize = const Size(700, 600);
tester.view.devicePixelRatio = 1;
addTearDown(tester.view.resetPhysicalSize);
addTearDown(tester.view.resetDevicePixelRatio);
final api = _TestApiRepository();
final chatCubit = ChatCubit(
api,
settingsStore: LocalSettingsStore.inMemory(),
);
await tester.pumpWidget(
MultiRepositoryProvider(
providers: [RepositoryProvider<ApiRepository>.value(value: api)],
child: MultiBlocProvider(
providers: [
BlocProvider.value(value: chatCubit),
BlocProvider(create: (_) => VoiceCubit(api, AudioRecorder())),
],
child: const SovereignApp(),
),
),
);
await tester.pumpAndSettle();
expect(find.text('مشاريعي'), findsNothing);
expect(find.byTooltip('تسجيل مشروع من مجلد موجود'), findsOneWidget);
expect(tester.takeException(), isNull);
await chatCubit.close();
});
testWidgets('model selector displays capabilities reported by Ollama', (
tester,
) async {