Merge commit '3f05421e8b61f063155eb61a166edcee910b750a' into pipelines/run-20261111-1928-focus-chat-composer-when-toggling-from-f-1ed3
This commit is contained in:
@@ -93,6 +93,31 @@ void main() {
|
||||
expect(find.widgetWithText(TextButton, 'demo'), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('file sorting uses a sort icon and preserves direction', (
|
||||
tester,
|
||||
) async {
|
||||
final controller = await pump(tester);
|
||||
|
||||
expect(find.byTooltip('Sort'), findsOneWidget);
|
||||
expect(find.byIcon(Icons.sort), findsOneWidget);
|
||||
expect(controller.sort.key, FilesSortKey.name);
|
||||
expect(controller.sort.ascending, isTrue);
|
||||
|
||||
await tester.tap(find.byTooltip('Sort'));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('size'));
|
||||
await tester.pumpAndSettle();
|
||||
expect(controller.sort.key, FilesSortKey.size);
|
||||
expect(controller.sort.ascending, isTrue);
|
||||
|
||||
await tester.tap(find.byTooltip('Sort'));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('size ↑'));
|
||||
await tester.pumpAndSettle();
|
||||
expect(controller.sort.key, FilesSortKey.size);
|
||||
expect(controller.sort.ascending, isFalse);
|
||||
});
|
||||
|
||||
testWidgets('text tap opens shared viewer and fetches inline URL', (
|
||||
tester,
|
||||
) async {
|
||||
|
||||
@@ -47,6 +47,36 @@ void main() {
|
||||
expect(tester.getRect(find.byType(ProbeContent)).top, greaterThan(80));
|
||||
});
|
||||
|
||||
testWidgets('the outline covers the full window and uses the theme palette', (
|
||||
tester,
|
||||
) async {
|
||||
manager.open('probe', 'a');
|
||||
await pumpProbe(tester, manager);
|
||||
|
||||
final outline = find.byType(WindowOutline);
|
||||
expect(outline, findsOneWidget);
|
||||
expect(tester.getSize(outline), const Size(360, 420));
|
||||
final decoration =
|
||||
tester
|
||||
.widget<DecoratedBox>(
|
||||
find.descendant(
|
||||
of: outline,
|
||||
matching: find.byType(DecoratedBox),
|
||||
),
|
||||
)
|
||||
.decoration
|
||||
as BoxDecoration;
|
||||
expect(
|
||||
decoration.border,
|
||||
Border.all(
|
||||
color: Theme.of(
|
||||
tester.element(find.byType(WindowOutline)),
|
||||
).colorScheme.outlineVariant,
|
||||
),
|
||||
);
|
||||
expect(decoration.borderRadius, BorderRadius.circular(windowCornerRadius));
|
||||
});
|
||||
|
||||
testWidgets('the app behind takes input everywhere outside a window', (
|
||||
tester,
|
||||
) async {
|
||||
|
||||
Reference in New Issue
Block a user