driver scenario fix
This commit is contained in:
parent
a2cdf4d4ac
commit
a41b61a016
2 changed files with 9 additions and 11 deletions
|
@ -73,8 +73,6 @@ class _AvesSelectionDialogState<T> extends State<AvesSelectionDialog<T>> {
|
||||||
final radioValue = kv.key;
|
final radioValue = kv.key;
|
||||||
final radioTitle = kv.value;
|
final radioTitle = kv.value;
|
||||||
return SelectionRadioListTile(
|
return SelectionRadioListTile(
|
||||||
// key is expected by test driver
|
|
||||||
key: Key(radioValue.toString()),
|
|
||||||
value: radioValue,
|
value: radioValue,
|
||||||
title: radioTitle,
|
title: radioTitle,
|
||||||
optionSubtitleBuilder: widget.optionSubtitleBuilder,
|
optionSubtitleBuilder: widget.optionSubtitleBuilder,
|
||||||
|
@ -125,7 +123,7 @@ class SelectionRadioListTile<T> extends StatelessWidget {
|
||||||
final subtitle = optionSubtitleBuilder?.call(value);
|
final subtitle = optionSubtitleBuilder?.call(value);
|
||||||
return ReselectableRadioListTile<T>(
|
return ReselectableRadioListTile<T>(
|
||||||
// key is expected by test driver
|
// key is expected by test driver
|
||||||
key: Key(value.toString()),
|
key: Key('$value'),
|
||||||
value: value,
|
value: value,
|
||||||
groupValue: getGroupValue(),
|
groupValue: getGroupValue(),
|
||||||
onChanged: (v) {
|
onChanged: (v) {
|
||||||
|
|
|
@ -120,9 +120,9 @@ void configureCollectionVisibility(AppDebugAction action) {
|
||||||
void collection() {
|
void collection() {
|
||||||
test('1. Collection', () async {
|
test('1. Collection', () async {
|
||||||
await driver.tapKeyAndWait('appbar-leading-button');
|
await driver.tapKeyAndWait('appbar-leading-button');
|
||||||
await driver.tapKeyAndWait('drawer-type-favourite');
|
await driver.tapKeyAndWait('drawer-type-favourite-false');
|
||||||
await _search('birds', 'tag-birds');
|
await _search('birds', 'tag-false-birds');
|
||||||
await _search('South Korea', 'tag-South Korea');
|
await _search('South Korea', 'tag-false-South Korea');
|
||||||
|
|
||||||
await _takeScreenshot(driver, '1');
|
await _takeScreenshot(driver, '1');
|
||||||
});
|
});
|
||||||
|
@ -133,7 +133,7 @@ void viewer() {
|
||||||
await driver.tapKeyAndWait('appbar-leading-button');
|
await driver.tapKeyAndWait('appbar-leading-button');
|
||||||
await driver.tapKeyAndWait('drawer-type-null');
|
await driver.tapKeyAndWait('drawer-type-null');
|
||||||
|
|
||||||
await _search('viewer', 'album-$screenshotsTargetDirAndroid/viewer');
|
await _search('viewer', 'album-false-$screenshotsTargetDirAndroid/viewer');
|
||||||
|
|
||||||
// delay to avoid flaky descendant resolution
|
// delay to avoid flaky descendant resolution
|
||||||
await Future.delayed(const Duration(seconds: 2));
|
await Future.delayed(const Duration(seconds: 2));
|
||||||
|
@ -190,8 +190,8 @@ void stats() {
|
||||||
final maxYear = DateTime.now().year + 1;
|
final maxYear = DateTime.now().year + 1;
|
||||||
final maxQuery = 'year<$maxYear';
|
final maxQuery = 'year<$maxYear';
|
||||||
const minQuery = 'year>2005';
|
const minQuery = 'year>2005';
|
||||||
await _search(maxQuery, 'query-$maxQuery');
|
await _search(maxQuery, 'query-false-$maxQuery');
|
||||||
await _search(minQuery, 'query-$minQuery');
|
await _search(minQuery, 'query-false-$minQuery');
|
||||||
|
|
||||||
await driver.tapKeyAndWait('appbar-menu-button');
|
await driver.tapKeyAndWait('appbar-menu-button');
|
||||||
await driver.tapKeyAndWait('menu-stats');
|
await driver.tapKeyAndWait('menu-stats');
|
||||||
|
@ -217,8 +217,8 @@ void map() {
|
||||||
await driver.tapKeyAndWait('appbar-leading-button');
|
await driver.tapKeyAndWait('appbar-leading-button');
|
||||||
await driver.tapKeyAndWait('drawer-type-null');
|
await driver.tapKeyAndWait('drawer-type-null');
|
||||||
|
|
||||||
await _search('animals', 'tag-animals');
|
await _search('animals', 'tag-false-animals');
|
||||||
await _search('Singapore', 'location-LocationLevel.country-Singapore');
|
await _search('Singapore', 'location-false-LocationLevel.country-Singapore');
|
||||||
|
|
||||||
await driver.tapKeyAndWait('appbar-menu-button');
|
await driver.tapKeyAndWait('appbar-menu-button');
|
||||||
await driver.tapKeyAndWait('menu-map');
|
await driver.tapKeyAndWait('menu-map');
|
||||||
|
|
Loading…
Reference in a new issue