Drop the Cupertino files test the Material-only details invalidated

This commit is contained in:
2026-11-10 22:54:32 +00:00
parent e4ad266a6a
commit f6046c5ab6
@@ -1,7 +1,6 @@
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter/cupertino.dart';
import 'package:pipelines_app/features/chat/files/files_preview.dart';
import 'package:pipelines_app/features/artifacts/domain/artifact_kind.dart';
import 'package:flutter_test/flutter_test.dart';
@@ -243,31 +242,6 @@ void main() {
expect(filesThumbnailDecodeSize(10), 224);
expect(tester.takeException(), isNull);
});
testWidgets('Cupertino unknown file and menu use native controls', (
tester,
) async {
final controller = FilesController(
gateway: Gateway(),
initialPath: '/home/demo',
);
addTearDown(controller.dispose);
await tester.pumpWidget(
CupertinoApp(
theme: const CupertinoThemeData(brightness: Brightness.dark),
home: CupertinoPageScaffold(child: FilesPanel(controller: controller)),
),
);
await tester.pumpAndSettle();
expect(
Theme.of(tester.element(find.byType(ListTile).first)).brightness,
Brightness.dark,
);
await tester.tap(find.text('archive.zip'));
await tester.pumpAndSettle();
expect(find.text('Download'), findsOneWidget);
expect(find.byType(CupertinoButton), findsWidgets);
expect(tester.takeException(), isNull);
});
testWidgets('PDF external-open failures keep download available', (
tester,
) async {