Skip to content

Commit 4937f6f

Browse files
committed
app test [nfc]: Move error reporting tests to a separate group
to set them apart from 'scaffoldMessenger' tests. Signed-off-by: Zixuan James Li <[email protected]>
1 parent 2ef825a commit 4937f6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/widgets/app_test.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,9 @@ void main() {
245245
check(ZulipApp.scaffoldMessenger).isNotNull();
246246
check(ZulipApp.ready).value.isTrue();
247247
});
248+
});
248249

250+
group('error reporting', () {
249251
Finder findSnackBarByText(String text) => find.descendant(
250252
of: find.byType(SnackBar),
251253
matching: find.text(text));
@@ -307,7 +309,7 @@ void main() {
307309
check(findSnackBarByText(message).evaluate()).single;
308310
}
309311

310-
testWidgets('reportErrorToUser dismissing SnackBar', (tester) async {
312+
testWidgets('reportErrorToUserBriefly dismissing SnackBar', (tester) async {
311313
const message = 'test error message';
312314
const details = 'error details';
313315
await prepareSnackBarWithDetails(tester, message, details);

0 commit comments

Comments
 (0)