-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* start work * start creating dummy selector test * implement very simple, basic, dummy, rudimentary, stupid, selector algorithm * create MaestroDriveHelper * first working MVP * delete first prototype (from Wednesday) of selector (with strings) * use Symbols, lol * update README and add example test * example: move notifications to a separate screen to make testing easier * fix selector test * add MaestroFinder.text * add support for RegExp and fix notification test * add support for complex selector expression for top-level $ * delete obsolete test/widget_test.dart * add some docs * cleanups * rename enum `Chainers` to `Chainer` * remove global `$`, provide it in `maestroTest` instead * rename `initialFinder` to `parentFinder` * example: use `Key` instead of `ValueKey` * add missing tap() from comment * run example app tests in CI * make MaestroFinder extends Finder * flutter format --set-exit-if-changed * rename instances of `MaestroTester` to `$` * maestro_test: fix readme * remove outdated docs * remove `Chainer`, create `MaestroFinder.withDescendant()` method * add `@isTest` annotation to `maestroTest()` * flutter format * remove `Chainers` * `$`: add support for `IconData` * `maestroTest()`: add optional args for `testWidgets()` * clean up READMEs * Bump versions Co-authored-by: Mateusz Wojtczak <[email protected]>
- Loading branch information
1 parent
382a317
commit c97911e
Showing
24 changed files
with
634 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
include: package:leancode_lint/analysis_options_package.yaml | ||
|
||
linter: | ||
rules: | ||
public_member_api_docs: false |
12 changes: 3 additions & 9 deletions
12
packages/maestro_test/example/integration_test/app_test.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
packages/maestro_test/example/integration_test/example_test.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import 'package:example/main.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_test/flutter_test.dart'; | ||
import 'package:maestro_test/maestro_test.dart'; | ||
|
||
void main() { | ||
final maestro = Maestro.forTest(); | ||
|
||
maestroTest( | ||
'counter state is the same after going to Home and switching apps', | ||
($) async { | ||
await $.pumpWidgetAndSettle(const MyApp()); | ||
|
||
await $(FloatingActionButton).tap(); | ||
expect($(#counterText).text, '1'); | ||
|
||
await maestro.pressHome(); | ||
await maestro.pressDoubleRecentApps(); | ||
|
||
expect($(#counterText).text, '1'); | ||
await $(FloatingActionButton).tap(); | ||
expect($(#counterText).text, '2'); | ||
|
||
await maestro.openHalfNotificationShade(); | ||
await maestro.pressBack(); | ||
}, | ||
); | ||
} |
18 changes: 8 additions & 10 deletions
18
packages/maestro_test/example/integration_test/notification_test.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.