Skip to content

Commit 61beb09

Browse files
committed
test: fix
1 parent d56926c commit 61beb09

File tree

5 files changed

+13
-15
lines changed

5 files changed

+13
-15
lines changed

.github/workflows/flutter.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,13 @@ jobs:
5050
# keyAlias="${{ secrets.KEY_ALIAS }}
5151
# storeFile=keystore.jks
5252
run: |
53-
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" > ./android/key.properties
54-
echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> ./android/key.properties
55-
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> ./android/key.properties
56-
echo "storeFile=keystore.jks" >> ./android/key.properties
53+
echo keyPassword="${{ secrets.KEY_PASSWORD }}" > ./android/key.properties
54+
echo storePassword="${{ secrets.STORE_PASSWORD }}" >> ./android/key.properties
55+
echo keyAlias="${{ secrets.KEY_ALIAS }}" >> ./android/key.properties
56+
echo storeFile=keystore.jks >> ./android/key.properties
5757
echo "${{ secrets.KEY_JKS }}" | base64 --decode > ./android/app/keystore.jks
58-
echo
5958
60-
61-
- run: flutter build apk
59+
# - run: flutter build apk
6260

6361
- run: flutter build appbundle
6462

integration_test/app_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void main() {
3737
userIdentifier: userIdentifier,
3838
password: password,
3939
elnUrl: elnUrl,
40-
validationUser: 'User1 Complat');
40+
validationUser: 'User6 Complat');
4141

4242
devPrint('open task list');
4343
await menuScreenRobot.openTaskList();

integration_test/robots/archive_robot.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'package:chemobile/components/weighted_sample_archive_entry.dart';
1+
import 'package:chemobile/components/archive_entry.dart';
22
import 'package:flutter_test/flutter_test.dart';
33
import 'package:flutter/material.dart';
44

@@ -11,11 +11,11 @@ class ArchiveRobot {
1111
await tester.pumpAndSettle();
1212
await _validateArchiveScreen();
1313

14-
expect(find.byType(WeightedSampleArchiveEntry), findsNWidgets(count));
14+
expect(find.byType(ArchiveEntry), findsNWidgets(count));
1515
}
1616

1717
Future<void> openFirstScan() async {
18-
await tester.tap(find.byType(WeightedSampleArchiveEntry).first);
18+
await tester.tap(find.byType(ArchiveEntry).first);
1919
}
2020

2121
Future<void> _validateArchiveScreen() async {

integration_test/robots/menu_screen_robot.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ class MenuScreenRobot {
88

99
Future<void> openTaskList() async {
1010
await tester.pumpAndSettle();
11-
await tester.tap(find.widgetWithText(ListTile, 'Weighted samples'));
11+
await tester.tap(find.widgetWithText(ListTile, 'Unfinished tasks'));
1212
}
1313

1414
Future<void> openArchive() async {
1515
await tester.pumpAndSettle();
16-
await tester.tap(find.widgetWithText(ListTile, 'Previous Scans'));
16+
await tester.tap(find.widgetWithText(ListTile, 'Finished tasks'));
1717
}
1818
}

integration_test/robots/task_list_robot.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class TaskListRobot {
1010
await tester.pumpAndSettle();
1111
_validateTaskList();
1212

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

1616
Future<void> backToMenuScreen() async {
@@ -21,6 +21,6 @@ class TaskListRobot {
2121
}
2222

2323
void _validateTaskList() async {
24-
expect(find.widgetWithText(AppBar, 'Weighted sample tasks'), findsOneWidget);
24+
expect(find.widgetWithText(AppBar, 'Finished tasks'), findsOneWidget);
2525
}
2626
}

0 commit comments

Comments
 (0)