feat(tutorial): repoint Ajustes "Ayuda y tutorial" to the carousel

Point the existing Info tile at PantallaTutorialAyuda (with
primerArranque: false, so its last page reads "Close") instead of
PluriOnboardingDialog's "what's new" modal.

Trade-off: PluriOnboardingDialog loses its only manual entry point --
it keeps auto-showing on its own existing cadence from app.dart, but
is no longer reachable by tapping this tile. This matches the mockup's
Info screen, which has no separate "what's new" row.
This commit is contained in:
2026-08-01 11:49:11 +02:00
parent e297413145
commit a949b4503d
2 changed files with 31 additions and 2 deletions
@@ -5,6 +5,7 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:pluriwave/estado/estado_radio.dart';
import 'package:pluriwave/l10n/gen/app_localizations.dart';
import 'package:pluriwave/pantallas/ajustes/pantalla_ajustes_info.dart';
import 'package:pluriwave/pantallas/pantalla_tutorial_ayuda.dart';
import 'package:pluriwave/widgets/pluri_push_scaffold.dart';
import 'package:provider/provider.dart';
import 'package:shared_preferences/shared_preferences.dart';
@@ -98,4 +99,24 @@ void main() {
expect(find.text('Help and tutorial'), findsOneWidget);
},
);
testWidgets('tapping "Help and tutorial" opens the tutorial carousel with '
'primerArranque: false (so its last page reads "Close", not '
'"Start listening")', (tester) async {
_suppressListTileInkAssertion();
final estado = await crearEstado();
addTearDown(estado.dispose);
await tester.pumpWidget(buildScreen(estado));
await tester.pump();
await tester.pump(const Duration(milliseconds: 100));
await tester.tap(find.text('Help and tutorial'));
await tester.pumpAndSettle();
final pantalla = tester.widget<PantallaTutorialAyuda>(
find.byType(PantallaTutorialAyuda),
);
expect(pantalla.primerArranque, isFalse);
});
}