Skip to content

Commit

Permalink
chore: fixed UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rawi-coding committed Dec 20, 2024
1 parent b99b9fe commit 2a257d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions das_client/integration_test/test/train_journey_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void main() {
// Load app widget.
await prepareAndStartApp(tester);

// Verify we have trainnumber with T9999.
// Verify we have train number with T9999.
expect(find.text('T9999'), findsOneWidget);

// Verify we have ru SBB.
Expand All @@ -21,14 +21,14 @@ void main() {
final primaryButton = find.byWidgetPredicate((widget) => widget is SBBPrimaryButton).first;
expect(tester.widget<SBBPrimaryButton>(primaryButton).onPressed, isNotNull);

// press load Fahrordnung button
// press load train journey button
await tester.tap(primaryButton);

// wait for train journey to load
await tester.pumpAndSettle();

// check if station is present
expect(find.text('Solothurn'), findsOneWidget);
expect(find.text('Bahnhof A'), findsOneWidget);

await tester.pumpAndSettle();
});
Expand Down

0 comments on commit 2a257d6

Please sign in to comment.