Skip to content

Commit

Permalink
added delay
Browse files Browse the repository at this point in the history
  • Loading branch information
git-elliot committed Nov 17, 2024
1 parent 0ef609a commit 324b7dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/flutter_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
linux: ${{ steps.filter.outputs.linux == 'true' }}
macos: ${{ steps.filter.outputs.macos == 'true' }}
yaml: ${{ steps.filter.outputs.yaml == 'true' }}
windows: ${{ steps.filter.outputs.windows == 'true'}}
windows: ${{ steps.filter.outputs.windows == 'true' }}
branch: ${{steps.extract_branch.outputs.branch}}
steps:
# For pull requests it's not necessary to checkout the code
Expand Down Expand Up @@ -101,6 +101,9 @@ jobs:
run: flutter pub global activate coverage
- name: Run tests
run: flutter test
- name: Install Linux dependencies
if: ${{ (matrix.os == 'ubuntu') && (needs.changes.outputs.branch == 'dev') && (needs.changes.outputs.lib || needs.changes.outputs.test || needs.changes.outputs.linux || needs.changes.outputs.yaml ) }}
run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
- name: Run integration tests
if: needs.changes.outputs.branch == 'dev'
run: flutter test integration_test --coverage -d ${{ matrix.os == 'ubuntu' && 'linux' || matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion integration_test/app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void main() {
await tester.tap(devicesButton);
await tester.pump();
expect(find.byType(AdaptiveListTile), findsAny);
await tester.pumpAndSettle();
await tester.pumpAndSettle(const Duration(seconds: 5));
await tester.pump();
expect(find.byType(AdaptiveListTile), findsAtLeast(2));

Expand Down

0 comments on commit 324b7dd

Please sign in to comment.