From 4826c376a7bad1e1dac3b2fb50d72f9b4db2f0e6 Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Thu, 29 Jun 2023 00:38:04 +0200 Subject: [PATCH] remove outdated `advanced native automation` section --- docs.json | 1 - docs/native/advanced.mdx | 38 -------------------------------------- 2 files changed, 39 deletions(-) delete mode 100644 docs/native/advanced.mdx diff --git a/docs.json b/docs.json index 2cb3c950e..ae114f2db 100644 --- a/docs.json +++ b/docs.json @@ -36,7 +36,6 @@ [ ["Overview", "/native/overview"], ["Usage", "/native/usage"], - ["Advanced", "/native/advanced"], ["Feature parity", "/native/feature-parity"] ] ], diff --git a/docs/native/advanced.mdx b/docs/native/advanced.mdx deleted file mode 100644 index ae31197fc..000000000 --- a/docs/native/advanced.mdx +++ /dev/null @@ -1,38 +0,0 @@ ---- -title: Native - advanced ---- - -# Advanced - -### Standalone native automation - -By standalone native automation means creating and using `NativeAutomator` -directly, that is, without `PatrolTester` (a.k.a "the dollar" – `$`). - -This is useful if, for any reason, you have to use Flutter's default -[testWidgets()][test_widgets] function rather than Patrol's -[patrolTest()][patrol_test]. - -```dart title="integration_test/app_test.dart" -Future main() async { - final automator = NativeAutomator( - config: NativeAutomatorConfig( - packageName: 'your.app.id.on.android', - bundleId: 'your.app.id.on.ios', - ), - ); - await automator.configure(); - - testWidgets( - 'test description', - (WidgetTester tester) async { - await tester.tap(find.text('Sign in')) - await automator.pressHome(); - // ... - }, - ); -} -``` - -[test_widgets]: https://api.flutter.dev/flutter/flutter_test/testWidgets.html -[patrol_test]: https://pub.dev/documentation/patrol/latest/patrol/patrolTest.html