Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fluent UI - Clean up of old code #45

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions integration_test/app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@ import 'package:integration_test/integration_test.dart';
void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();

testWidgets('Download model from HF', (tester) async {
const app = App();
await tester.pumpWidget(app);
//testWidgets('Download model from HF', (tester) async {
// const app = App();
// await tester.pumpWidget(app);

await tester.tap(find.text('Import model'));
await tester.pumpAndSettle();
// await tester.tap(find.text('Import model'));
// await tester.pumpAndSettle();

await tester.tap(find.text('Hugging Face'));
await tester.pumpAndSettle();
// await tester.tap(find.text('Hugging Face'));
// await tester.pumpAndSettle();

final searchBarFinder = find.bySemanticsLabel('Find a model').first;
await tester.tap(searchBarFinder, warnIfMissed: false);
await tester.pumpAndSettle();
await tester.enterText(searchBarFinder, 'tiny');
await tester.pumpAndSettle();
// final searchBarFinder = find.bySemanticsLabel('Find a model').first;
// await tester.tap(searchBarFinder, warnIfMissed: false);
// await tester.pumpAndSettle();
// await tester.enterText(searchBarFinder, 'tiny');
// await tester.pumpAndSettle();

await tester.tap(find.text('TinyLlama 1.1B Chat V1.0').first);
await tester.pumpAndSettle();
await tester.tap(find.text('Import selected model'));
await tester.pumpFrames(app, const Duration(seconds: 1));
expect(find.textContaining(RegExp(r'^[1-9][\d,]* MB$')), findsNWidgets(2));
// await tester.tap(find.text('TinyLlama 1.1B Chat V1.0').first);
// await tester.pumpAndSettle();
// await tester.tap(find.text('Import selected model'));
// await tester.pumpFrames(app, const Duration(seconds: 1));
// expect(find.textContaining(RegExp(r'^[1-9][\d,]* MB$')), findsNWidgets(2));

await tester.pumpAndSettle();
});
}
// await tester.pumpAndSettle();
//});
}
46 changes: 0 additions & 46 deletions lib/example_graph.dart

This file was deleted.

61 changes: 0 additions & 61 deletions lib/header.dart

This file was deleted.

37 changes: 0 additions & 37 deletions lib/import/import_page.dart

This file was deleted.

30 changes: 0 additions & 30 deletions lib/import/optimization_filter_button.dart

This file was deleted.

Loading
Loading