0a3f2c5cc6
- 模块化:EdcModule 契约 + registry + 模块独立目录;发布包增加 modules/registry.json - 更名:PDS流程设计套件 / ProcessDesignSuite;同步构建、发布脚本与文档 - 时序图:依赖偏移以时间显示/编辑;紧贴依赖隐藏箭头并在接缝显示标签;动作条磁吸 - 圆周:依赖标签沿圆弧方向、环间空隙;动作旋转磁吸增强;短弧标签优先动作名 - 清理:release 移至源码同级(本地不入库);tool 合并到 tools;发布说明迁移 docs/release-notes
39 lines
1.5 KiB
Dart
39 lines
1.5 KiB
Dart
// 架构图属性面板回归:选中图元后显示基本信息;已移除的「尺寸标注」不再出现。
|
|
import 'package:flutter/material.dart' hide Action;
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:sequence_diagram/modules/architecture/domain/arch_models.dart';
|
|
import 'package:sequence_diagram/model/models.dart';
|
|
import 'package:sequence_diagram/state/app_controller.dart';
|
|
import 'package:sequence_diagram/theme/tokens.dart';
|
|
import 'package:sequence_diagram/modules/architecture/ui/arch_panel.dart';
|
|
|
|
void main() {
|
|
testWidgets('选中图元:属性卡正常显示,且不再有「尺寸 · mm」区',
|
|
(WidgetTester tester) async {
|
|
final AppController c = AppController(project: Project.demo());
|
|
c.addArchShape(const ArchShape(
|
|
id: 'S1',
|
|
type: ArchShapeType.symbol,
|
|
symbolId: 'pe-ground',
|
|
rect: Rect.fromLTWH(100, 100, 80, 150),
|
|
));
|
|
c.selectArch('S1');
|
|
await tester.pumpWidget(MaterialApp(
|
|
theme: buildTheme(Tokens.light),
|
|
home: Scaffold(
|
|
body: SingleChildScrollView(child: ArchRightBody(controller: c)),
|
|
),
|
|
));
|
|
await tester.pump();
|
|
|
|
// 属性卡正常渲染(图元类型中文名)。
|
|
expect(find.textContaining('图元'), findsWidgets);
|
|
// 已移除:尺寸标注区不存在。
|
|
expect(find.textContaining('尺寸 · mm'), findsNothing);
|
|
|
|
// 清理:先卸载组件树,再释放控制器。
|
|
await tester.pumpWidget(const SizedBox());
|
|
c.dispose();
|
|
});
|
|
}
|