Skip to content

Commit

Permalink
Try to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ferraridamiano committed Jan 5, 2025
1 parent 935bebf commit bdce33e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@ jobs:
- name: Bootstrap
run: melos bootstrap

- name: Run large display integration testing
- name: Run small display integration testing
run: |
export DISPLAY=:99
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
flutter test integration_test/large_display_test.dart -d linux
- name: Run small display integration testing
flutter test integration_test/small_display_test.dart -d linux
- name: Run large display integration testing
run: |
export DISPLAY=:99
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
flutter test integration_test/small_display_test.dart -d linux
flutter test integration_test/large_display_test.dart -d linux
3 changes: 0 additions & 3 deletions integration_test/large_display_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,8 @@ void main() {
expect(find.text('Length'), findsAtLeastNWidgets(2),
reason: 'Expected the length page');

await tester.pump(const Duration(milliseconds: 1000));

await tester.enterText(find.byKey(const ValueKey('LENGTH.miles')), '1');
await tester.pumpAndSettle();
await tester.pump(const Duration(milliseconds: 1000));

expect(tffFeet.controller!.text, '5280', reason: 'Conversion error');
expect(tffMeters.controller!.text, '1609.344',
Expand Down

0 comments on commit bdce33e

Please sign in to comment.