Flutter Testing
ASecurityAdd `integration_test/orders_integration_test.dart`: ```dart import 'package:patrol/patrol.dart'; import 'robots/orders_robot.dart'; import 'helpers/integration_auth_helper.dart'; patrolTest( 'should show first order card when logged in and opening orders tab', ($) async { final robot = OrdersRobot($.tester); // Uses configured test credentials. await IntegrationAuthHelper.loginOrSkip($); await robot.tapOrdersTab(); await robot.expectFirstOrderVisible(); }, ); ``` Assumptions: - `IntegrationA...
- 584 stars
- 0 votes
- 0 copies
- 4 views
- Added September 5, 2026
Security analysis
100/100Pro scans all 12 files and shows the line behind each finding
npx -y skills add HoangNguyen0403/agent-skills-standard --skill flutter-testing --agent claude-codeAre you the author of Flutter Testing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-flutter-testing-aebfffc8)Add `integration_test/orders_integration_test.dart`:
```dart
import 'package:patrol/patrol.dart';
import 'robots/orders_robot.dart';
import 'helpers/integration_auth_helper.dart';
patrolTest(
'should show first order card when logged in and opening orders tab',
($) async {
final robot = OrdersRobot($.tester);
// Uses configured test credentials.
await IntegrationAuthHelper.loginOrSkip($);
await robot.tapOrdersTab();
await robot.expectFirstOrderVisible();
},
);
```
Assumptions:
- `IntegrationAuthHelper.loginOrSkip($)` performs login with configured test credentials.
- `OrdersRobot` provides `tapOrdersTab()` and `expectFirstOrderVisible()`.
- The robot uses `WidgetKeys` and contains all `find.*`/`expect()` calls; none remain in the test body.
- Native interactions, if login requires them, stay inside the helper via `$.native.*`.
Files in this skill
- eval-1.baseline.md
- eval-1.with-skill.md
- eval-2.baseline.md
- eval-2.with-skill.md
- eval-3.baseline.md
- eval-3.with-skill.md
- trigger-1.md
- trigger-2.md
- trigger-3.md
- trigger-4.md
- trigger-5.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.