feat: Initial commit of Forge package manager (Flutter + Rust)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:forge/main.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('App loads smoke test', (WidgetTester tester) async {
|
||||
tester.view.physicalSize = const Size(1200, 800);
|
||||
tester.view.devicePixelRatio = 1.0;
|
||||
addTearDown(tester.view.resetPhysicalSize);
|
||||
|
||||
await tester.runAsync(() async {
|
||||
await tester.pumpWidget(const ForgeApp());
|
||||
await Future.delayed(const Duration(milliseconds: 200));
|
||||
await tester.pump();
|
||||
});
|
||||
expect(find.text('Forge'), findsWidgets);
|
||||
|
||||
// Click on 'Каталог' sidebar item
|
||||
await tester.runAsync(() async {
|
||||
final catalogItem = find.text('Каталог');
|
||||
expect(catalogItem, findsOneWidget);
|
||||
await tester.tap(catalogItem);
|
||||
await tester.pump();
|
||||
await Future.delayed(const Duration(milliseconds: 200));
|
||||
await tester.pump();
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user