From 50c32c4f4005e6210d8c088288d42f7d2bb278d2 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Wed, 11 Nov 2026 16:08:26 +0100 Subject: [PATCH] Find shared sync screen by type, not title sync_settings_ui 0.7.0 is text-free; its AppBar title is gone. Co-Authored-By: Claude Opus 5.5 --- .../test/screens/settings_screen_thresholds_test.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stronglift_replacement/workout_app/test/screens/settings_screen_thresholds_test.dart b/stronglift_replacement/workout_app/test/screens/settings_screen_thresholds_test.dart index 0e3480c..df3b156 100644 --- a/stronglift_replacement/workout_app/test/screens/settings_screen_thresholds_test.dart +++ b/stronglift_replacement/workout_app/test/screens/settings_screen_thresholds_test.dart @@ -3,6 +3,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:http/http.dart' as http; import 'package:sqflite_common_ffi/sqflite_ffi.dart'; +import 'package:sync_settings_ui/sync_settings_ui.dart'; import 'package:workout_app/models/exercise.dart'; import 'package:workout_app/models/workout_plan.dart'; import 'package:workout_app/screens/settings_screen.dart'; @@ -105,9 +106,9 @@ void main() { await tester.tap(iconLabeled('Sync settings')); await tester.pumpAndSettle(); - // The shared package's own screen -- its AppBar title, not this app's. - expect(find.text('Sync settings'), findsOneWidget); - expect(find.text('Firebase sync'), findsWidgets); + // The shared package's own screen (text-free since sync_settings_ui 0.7.0, + // so it is found by type, not by its old AppBar title). + expect(find.byType(SyncSettingsScreen), findsOneWidget); }); testWidgets('opening Advanced sync (GitHub) pushes the app-local screen', (