Drop the Cupertino files test the Material-only details invalidated
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.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/chat/files/files_preview.dart';
|
||||||
import 'package:pipelines_app/features/artifacts/domain/artifact_kind.dart';
|
import 'package:pipelines_app/features/artifacts/domain/artifact_kind.dart';
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
@@ -243,31 +242,6 @@ void main() {
|
|||||||
expect(filesThumbnailDecodeSize(10), 224);
|
expect(filesThumbnailDecodeSize(10), 224);
|
||||||
expect(tester.takeException(), isNull);
|
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', (
|
testWidgets('PDF external-open failures keep download available', (
|
||||||
tester,
|
tester,
|
||||||
) async {
|
) async {
|
||||||
|
|||||||
Reference in New Issue
Block a user