Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PiTrem committed Jul 15, 2024
1 parent 30faefc commit cefdabd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,13 @@ jobs:
# keyAlias="${{ secrets.KEY_ALIAS }}
# storeFile=keystore.jks
run: |
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" > ./android/key.properties
echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> ./android/key.properties
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> ./android/key.properties
echo "storeFile=keystore.jks" >> ./android/key.properties
echo keyPassword="${{ secrets.KEY_PASSWORD }}" > ./android/key.properties
echo storePassword="${{ secrets.STORE_PASSWORD }}" >> ./android/key.properties
echo keyAlias="${{ secrets.KEY_ALIAS }}" >> ./android/key.properties
echo storeFile=keystore.jks >> ./android/key.properties
echo "${{ secrets.KEY_JKS }}" | base64 --decode > ./android/app/keystore.jks
echo
- run: flutter build apk
# - run: flutter build apk

- run: flutter build appbundle

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 @@ -37,7 +37,7 @@ void main() {
userIdentifier: userIdentifier,
password: password,
elnUrl: elnUrl,
validationUser: 'User1 Complat');
validationUser: 'User6 Complat');

devPrint('open task list');
await menuScreenRobot.openTaskList();
Expand Down
6 changes: 3 additions & 3 deletions integration_test/robots/archive_robot.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:chemobile/components/weighted_sample_archive_entry.dart';
import 'package:chemobile/components/archive_entry.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter/material.dart';

Expand All @@ -11,11 +11,11 @@ class ArchiveRobot {
await tester.pumpAndSettle();
await _validateArchiveScreen();

expect(find.byType(WeightedSampleArchiveEntry), findsNWidgets(count));
expect(find.byType(ArchiveEntry), findsNWidgets(count));
}

Future<void> openFirstScan() async {
await tester.tap(find.byType(WeightedSampleArchiveEntry).first);
await tester.tap(find.byType(ArchiveEntry).first);
}

Future<void> _validateArchiveScreen() async {
Expand Down
4 changes: 2 additions & 2 deletions integration_test/robots/menu_screen_robot.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ class MenuScreenRobot {

Future<void> openTaskList() async {
await tester.pumpAndSettle();
await tester.tap(find.widgetWithText(ListTile, 'Weighted samples'));
await tester.tap(find.widgetWithText(ListTile, 'Unfinished tasks'));
}

Future<void> openArchive() async {
await tester.pumpAndSettle();
await tester.tap(find.widgetWithText(ListTile, 'Previous Scans'));
await tester.tap(find.widgetWithText(ListTile, 'Finished tasks'));
}
}
4 changes: 2 additions & 2 deletions integration_test/robots/task_list_robot.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TaskListRobot {
await tester.pumpAndSettle();
_validateTaskList();

await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.settings_overscan));
await tester.tap(find.widgetWithText(BottomNavigationBar, 'Start single scan'));
}

Future<void> backToMenuScreen() async {
Expand All @@ -21,6 +21,6 @@ class TaskListRobot {
}

void _validateTaskList() async {
expect(find.widgetWithText(AppBar, 'Weighted sample tasks'), findsOneWidget);
expect(find.widgetWithText(AppBar, 'Finished tasks'), findsOneWidget);
}
}

0 comments on commit cefdabd

Please sign in to comment.