diff --git a/packages/patrol_finders/lib/src/custom_finders/patrol_tester.dart b/packages/patrol_finders/lib/src/custom_finders/patrol_tester.dart index 30b1fc04e..ec38b3832 100644 --- a/packages/patrol_finders/lib/src/custom_finders/patrol_tester.dart +++ b/packages/patrol_finders/lib/src/custom_finders/patrol_tester.dart @@ -498,7 +498,7 @@ class PatrolTester { /// /// ```dart /// - /// /// This [Widget] will only be found when calling + /// /// This [Widget] will only be found when calling /// ///await $(Foo).waitUntilVisible(alignment: Alignment.topCenter) /// class Foo extends StatelessWidget { /// Foo({Key? key}) : super(key: key); @@ -517,12 +517,12 @@ class PatrolTester { /// } /// ``` /// As there is an empty [SizedBox] in the center of the [Column], - /// calling ``await $(Foo).waitUntilVisible()`` will fail - /// as the underlying [Finder.hitTestable] will not find any + /// calling ``await $(Foo).waitUntilVisible()`` will fail + /// as the underlying [Finder.hitTestable] will not find any /// hit-testable widget. Changing the ``alignment`` parameter - /// to ``Alignment.topCenter`` and calling + /// to ``Alignment.topCenter`` and calling /// ``await $(Foo).waitUntilVisible(alignment: Alignment.topCenter)`` - /// will make the test pass as the underlying [Finder.hitTestable] + /// will make the test pass as the underlying [Finder.hitTestable] /// will find the [Text] widget at the top of the [Column]. /// {@endtemplate} Future waitUntilVisible( diff --git a/packages/patrol_finders/test/patrol_finder_test.dart b/packages/patrol_finders/test/patrol_finder_test.dart index 9f100b62c..381cdf880 100644 --- a/packages/patrol_finders/test/patrol_finder_test.dart +++ b/packages/patrol_finders/test/patrol_finder_test.dart @@ -566,20 +566,22 @@ void main() { expect($('done').visible, true); }); - - - patrolWidgetTest('waits until widget is only visible at the topCenter alignment', ($) async { + patrolWidgetTest( + 'waits until widget is only visible at the topCenter alignment', + ($) async { await $.pumpWidget( MaterialApp( home: FutureBuilder( future: Future.delayed(const Duration(seconds: 3)), builder: (context, snapshot) { if (snapshot.connectionState == ConnectionState.done) { - return const Column(children: [ - Text('some text'), - SizedBox(height: 60), - Text('some other text'), - ],); + return const Column( + children: [ + Text('some text'), + SizedBox(height: 60), + Text('some other text'), + ], + ); } else { return const Text('in progress'); } @@ -591,9 +593,9 @@ void main() { expect($(Column).visible, false); expect($(Column).isVisibleAt(alignment: Alignment.topCenter), true); await expectLater( - $(Column).waitUntilVisible, - throwsA(isA()), - ); + $(Column).waitUntilVisible, + throwsA(isA()), + ); }); });