diff --git a/lib/issue_1619_repro.dart b/lib/issue_1619_repro.dart new file mode 100644 index 0000000..53f08ab --- /dev/null +++ b/lib/issue_1619_repro.dart @@ -0,0 +1,35 @@ +import 'package:flutter/material.dart'; + +class Issue1619Repro extends StatefulWidget { + const Issue1619Repro({super.key}); + + @override + State createState() => _Issue1619ReproState(); +} + +class _Issue1619ReproState extends State { + int count = 0; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('issue 1619 repro'), + ), + body: Center( + child: Column( + children: [ + Semantics( + identifier: 'first', + child: const Text("First"), + ), + Semantics( + identifier: 'second', + child: const Text("Second"), + ), + ], + ), + ), + ); + } +} diff --git a/lib/main.dart b/lib/main.dart index 6fa31e0..72b5fd0 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,4 +1,5 @@ import 'package:demo_app/form_test.dart'; +import 'package:demo_app/issue_1619_repro.dart'; import 'package:demo_app/issue_1677_repro.dart'; import 'package:demo_app/swipe_test.dart'; import 'package:flutter/material.dart'; @@ -96,6 +97,14 @@ class _MyHomePageState extends State { }, child: const Text('issue 1677 repro'), ), + ElevatedButton( + onPressed: () { + Navigator.of(context).push( + MaterialPageRoute(builder: (_) => const Issue1619Repro()), + ); + }, + child: const Text('issue 1619 repro'), + ), const Text( 'You have pushed the button this many times', ), diff --git a/maestro_issue_1619/flow.yaml b/maestro_issue_1619/flow.yaml new file mode 100644 index 0000000..588ed78 --- /dev/null +++ b/maestro_issue_1619/flow.yaml @@ -0,0 +1,14 @@ +appId: com.example.example +--- +- launchApp +- tapOn: issue 1619 repro +- runScript: + when: + visible: + text: First|Second + file: script.js +- runScript: + when: + visible: + id: first|second + file: script.js diff --git a/maestro_issue_1619/script.js b/maestro_issue_1619/script.js new file mode 100644 index 0000000..400d777 --- /dev/null +++ b/maestro_issue_1619/script.js @@ -0,0 +1 @@ +console.log("Script executed") diff --git a/maestro_issue_1760/flow.yaml b/maestro_issue_1760/flow.yaml new file mode 100644 index 0000000..6bdaca7 --- /dev/null +++ b/maestro_issue_1760/flow.yaml @@ -0,0 +1,6 @@ +appId: com.example.example +--- +- launchApp +- evalScript: ${console.log('Hello!')} +- evalScript: ${console.log('Hello money! $')} +- evalScript: ${console.log('$')} diff --git a/maestro_issue_1760/flow_2.yaml b/maestro_issue_1760/flow_2.yaml new file mode 100644 index 0000000..494dd8b --- /dev/null +++ b/maestro_issue_1760/flow_2.yaml @@ -0,0 +1,4 @@ +appId: com.example.example +--- +- launchApp +- runScript: script.js diff --git a/maestro_issue_1760/script.js b/maestro_issue_1760/script.js new file mode 100644 index 0000000..d3229b5 --- /dev/null +++ b/maestro_issue_1760/script.js @@ -0,0 +1,3 @@ +console.log('Hello!') +console.log('Hello money! $') +console.log('$')