Skip to content

Commit

Permalink
example_test: enter current test name in a text field
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Aug 14, 2023
1 parent 43d3ec6 commit 56be5b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/patrol/example/integration_test/example_test.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import 'package:patrol/src/extensions.dart';
import 'package:test_api/src/backend/invoker.dart';

import 'common.dart';

void main() {
Expand All @@ -24,6 +27,10 @@ void main() {

Future<void> _testBody(PatrolTester $) async {
await createApp($);

final testName = Invoker.current!.fullCurrentTestName();
await $(#textField).enterText(testName);

await $.native.pressHome();
await $.native.openApp();
}

0 comments on commit 56be5b0

Please sign in to comment.