1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-14 11:28:36 +00:00

Flutter 3.29 beta (#2571)

This commit is contained in:
Eric Windmill
2025-02-12 18:08:01 -05:00
committed by GitHub
parent d62c784789
commit 719fd72c38
685 changed files with 76244 additions and 53721 deletions

View File

@@ -25,8 +25,9 @@ void main() {
await testApp(tester, SearchFormContinent(viewModel: viewModel));
}
testWidgets('Should load and select continent',
(WidgetTester tester) async {
testWidgets('Should load and select continent', (
WidgetTester tester,
) async {
await loadWidget(tester);
expect(find.byType(SearchFormContinent), findsOneWidget);

View File

@@ -26,8 +26,9 @@ void main() {
await testApp(tester, SearchFormDate(viewModel: viewModel));
}
testWidgets('should display date in different month',
(WidgetTester tester) async {
testWidgets('should display date in different month', (
WidgetTester tester,
) async {
await loadWidget(tester);
expect(find.byType(SearchFormDate), findsOneWidget);
@@ -36,14 +37,17 @@ void main() {
// Simulate date picker input:
viewModel.dateRange = DateTimeRange(
start: DateTime(2024, 6, 12), end: DateTime(2024, 7, 23));
start: DateTime(2024, 6, 12),
end: DateTime(2024, 7, 23),
);
await tester.pumpAndSettle();
expect(find.text('12 Jun - 23 Jul'), findsOneWidget);
});
testWidgets('should display date in same month',
(WidgetTester tester) async {
testWidgets('should display date in same month', (
WidgetTester tester,
) async {
await loadWidget(tester);
expect(find.byType(SearchFormDate), findsOneWidget);
@@ -52,7 +56,9 @@ void main() {
// Simulate date picker input:
viewModel.dateRange = DateTimeRange(
start: DateTime(2024, 6, 12), end: DateTime(2024, 6, 23));
start: DateTime(2024, 6, 12),
end: DateTime(2024, 6, 23),
);
await tester.pumpAndSettle();
expect(find.text('12 - 23 Jun'), findsOneWidget);

View File

@@ -46,8 +46,9 @@ void main() {
);
}
testWidgets('Should fill form and perform search',
(WidgetTester tester) async {
testWidgets('Should fill form and perform search', (
WidgetTester tester,
) async {
await loadWidget(tester);
expect(find.byType(SearchFormScreen), findsOneWidget);
@@ -56,7 +57,9 @@ void main() {
// Select date
viewModel.dateRange = DateTimeRange(
start: DateTime(2024, 6, 12), end: DateTime(2024, 7, 23));
start: DateTime(2024, 6, 12),
end: DateTime(2024, 7, 23),
);
// Select guests
await tester.tap(find.byKey(const ValueKey(addGuestsKey)));