Skip to content

Commit

Permalink
more repros
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Aug 24, 2024
1 parent b168986 commit 8ee8d61
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 0 deletions.
35 changes: 35 additions & 0 deletions lib/issue_1619_repro.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import 'package:flutter/material.dart';

class Issue1619Repro extends StatefulWidget {
const Issue1619Repro({super.key});

@override
State<Issue1619Repro> createState() => _Issue1619ReproState();
}

class _Issue1619ReproState extends State<Issue1619Repro> {
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"),
),
],
),
),
);
}
}
9 changes: 9 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -96,6 +97,14 @@ class _MyHomePageState extends State<MyHomePage> {
},
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',
),
Expand Down
14 changes: 14 additions & 0 deletions maestro_issue_1619/flow.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions maestro_issue_1619/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("Script executed")
6 changes: 6 additions & 0 deletions maestro_issue_1760/flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
appId: com.example.example
---
- launchApp
- evalScript: ${console.log('Hello!')}
- evalScript: ${console.log('Hello money! $')}
- evalScript: ${console.log('$')}
4 changes: 4 additions & 0 deletions maestro_issue_1760/flow_2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
appId: com.example.example
---
- launchApp
- runScript: script.js
3 changes: 3 additions & 0 deletions maestro_issue_1760/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
console.log('Hello!')
console.log('Hello money! $')
console.log('$')

0 comments on commit 8ee8d61

Please sign in to comment.