Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
styrix560 committed Jun 3, 2024
1 parent 03adf67 commit 2065f6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration_test/app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Future<void> main() async {
"lastname",
"classname",
{
Seat(0, 1),
Seat(0, 1, "Parkett"),
},
0,
PriceType.normal,
Expand Down Expand Up @@ -149,7 +149,7 @@ Future<void> main() async {
"Mustermann",
"Musterklasse",
{
const Seat(0, 1),
const Seat(0, 1, "Parkett"),
},
0,
PriceType.normal,
Expand All @@ -166,9 +166,9 @@ Future<void> wait([int seconds = 5]) async {
Future<void> clickSeat(WidgetTester tester, String seatText) async {
print("finding seat");
final seat = find.text(seatText);
expect(seat, findsOne);
expect(seat, findsAtLeastNWidgets(1));

print("tapping seat");
await tester.tap(seat);
await tester.tap(seat.first);
await tester.pumpAndSettle();
}
1 change: 1 addition & 0 deletions lib/widgets/seat_cell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ class SeatCellWidget extends HookWidget {
return;
}
globalData.initializeActiveBooking(seat);
return;
}

// make a copy to avoid changing the reference in activeBooking
Expand Down

0 comments on commit 2065f6e

Please sign in to comment.