import 'dart:io'; import 'package:flutter_test/flutter_test.dart'; /// S1 (Tier 1 visual fidelity): the prototype (`t4`) never draws a global /// `AppBar` — every root owns its own 56px title row instead (see /// `PluriRootHeader` and `root_header_wiring_test.dart`). `app.dart` used to /// wrap every tab in `PluriWaveScaffold(appBar: AppBar(...))`; this is a /// fast source-level regression guard for that removal, since the widget /// under it (`_PaginaPrincipal`) is library-private and constructs real /// platform-backed services, so it cannot be safely widget-tested here. void main() { test('app.dart no longer constructs a global Material AppBar', () { final source = File('lib/app.dart').readAsStringSync(); expect( source.contains('AppBar('), isFalse, reason: 'the prototype has no global app bar — each root draws its own ' 'PluriRootHeader inside its content instead', ); }); }