fix(ui): 药箱健康看板卡片拆分独立状态并增加间距,彻底消除粘连贴合问题
This commit is contained in:
@@ -104,5 +104,19 @@ void main() {
|
||||
// 页面无缝切换到家庭药箱模块
|
||||
expect(find.text('家庭智能药箱'), findsOneWidget);
|
||||
expect(find.text('扫码录药'), findsOneWidget);
|
||||
|
||||
// 顶部 4 个健康状态看板独立分明
|
||||
expect(find.text('在库药品'), findsOneWidget);
|
||||
expect(find.text('安全正常'), findsOneWidget);
|
||||
expect(find.text('临期预警'), findsOneWidget);
|
||||
expect(find.text('超期/过期'), findsOneWidget);
|
||||
|
||||
// 点击【临期预警】看板卡片,独立高亮
|
||||
await tester.tap(find.text('临期预警'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// 点击【超期/过期】看板卡片,独立切换
|
||||
await tester.tap(find.text('超期/过期'));
|
||||
await tester.pumpAndSettle();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user