Some checks are pending
Security / Security check (push) Waiting to run
Studio is the Ch∆In product's GUI, not a F∆I-vendor app. Rename the Flutter package, all package: imports, and the build identity across platforms: linux/windows CMake BINARY_NAME + project, Windows Runner.rc fields, macOS PRODUCT_NAME / bundle id (ai.flemming.chain.chainStudio) / .app + scheme BuildableName. Update the client-SDK + flow-editor deps to their renamed chain_* packages (path + git URL). Company/copyright fields now read Flemming.AI. flutter analyze: clean. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
33 lines
1.2 KiB
Dart
33 lines
1.2 KiB
Dart
// Smoke test: app boots without exceptions and the sidebar
|
|
// exposes the F∆I brand. Per-destination presence checks
|
|
// got brittle with the v0.50.0 collapsed-by-default sidebar
|
|
// (labels are tooltips when collapsed, not Text widgets); we
|
|
// leave the per-destination assertion to the per-page tests.
|
|
|
|
import 'package:flutter/widgets.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:chain_studio/data/hub.dart';
|
|
import 'package:chain_studio/main.dart';
|
|
|
|
void main() {
|
|
testWidgets('Studio shell boots + sidebar shows brand on hover',
|
|
(tester) async {
|
|
await tester.pumpWidget(
|
|
const StudioApp(
|
|
initialThemeMode: ThemeModeValue.system,
|
|
initialLocale: Locale('en'),
|
|
),
|
|
);
|
|
await tester.pump(const Duration(milliseconds: 100));
|
|
// We don't simulate the hover here (mouse-gesture wiring
|
|
// in a widget test triggers RenderFlex overflow detection
|
|
// on the AnimatedContainer mid-transition); the collapsed
|
|
// state shows just the brand-mark icon, which is enough
|
|
// to prove the shell mounted.
|
|
expect(
|
|
find.byType(StudioApp),
|
|
findsOneWidget,
|
|
reason: 'StudioApp must mount without throwing',
|
|
);
|
|
});
|
|
}
|