fix(app): polish glass diff and pipeline controls
This commit is contained in:
@@ -41,4 +41,25 @@ void main() {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
testWidgets('wide scope control hugs its labels', (tester) async {
|
||||
await tester.pumpWidget(
|
||||
MaterialApp(
|
||||
home: Scaffold(
|
||||
body: SizedBox(
|
||||
width: 500,
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional.centerStart,
|
||||
child: PipelineScopeControl(scheduled: false, onSelected: (_) {}),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
expect(
|
||||
tester.getSize(find.byKey(const Key('pipeline-scope'))).width,
|
||||
lessThan(500),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user