From f6046c5ab6c0b3bc2e27e8f5eaf4ab7daf0e6028 Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Tue, 10 Nov 2026 22:54:32 +0000 Subject: [PATCH] Drop the Cupertino files test the Material-only details invalidated --- .../features/chat/files/files_panel_test.dart | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/app/test/features/chat/files/files_panel_test.dart b/app/test/features/chat/files/files_panel_test.dart index 0ace8ee9..f8377874 100644 --- a/app/test/features/chat/files/files_panel_test.dart +++ b/app/test/features/chat/files/files_panel_test.dart @@ -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 {