Skip to content

Commit

Permalink
fix: notification test
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed May 30, 2024
1 parent a1395cb commit 9217b74
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import '../../shared/util.dart';
void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();

group('board add row test', () {
testWidgets('Add card from header', (tester) async {
group('notification test', () {
testWidgets('enable notification', (tester) async {
await tester.initializeAppFlowy();
await tester.tapAnonymousSignInButton();

await tester.openSettings();
await tester.openSettingsPage(SettingsPage.notifications);
await tester.pumpAndSettle();

final switchFinder = find.byType(Switch);
final switchFinder = find.byType(Switch).first;

// Defaults to enabled
Switch switchWidget = tester.widget(switchFinder);
Expand Down

0 comments on commit 9217b74

Please sign in to comment.