Skip to content

Add test for animated list example - #156452

Merged
auto-submit[bot] merged 2 commits into
flutter:masterfrom
ValentinVignal:flutter/api/example/Add-test-for-animated-list
Oct 10, 2024
Merged

auto-submit[bot] merged 2 commits into
flutter:masterfrom
ValentinVignal:flutter/api/example/Add-test-for-animated-list

Conversation

@ValentinVignal

Copy link
Copy Markdown
Contributor

Contributes to #130459

It adds a test for

  • examples/api/lib/widgets/animated_list/animated_list.0.dart

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@ValentinVignal
ValentinVignal requested a review from bleroux October 9, 2024 07:27
@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos labels Oct 9, 2024

@bleroux bleroux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Great test addition, thanks! 🙏
(Two very minor nits before merging).

expect(find.text('Item 1'), findsOne);
expect(find.text('Item 2'), findsOne);

// Add an item at the end of the list

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Add an item at the end of the list
// Add an item at the end of the list.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

await tester.tap(find.text('Item 1'));
await tester.pumpAndSettle();

// Add item at the top of the list

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Add item at the top of the list
// Add item at the top of the list.

@ValentinVignal ValentinVignal added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 10, 2024
@auto-submit
auto-submit Bot merged commit 96c761c into flutter:master Oct 10, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 10, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 10, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 10, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 10, 2024
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Oct 10, 2024
flutter/flutter@2d45fb3...6790525

2024-10-10 [email protected] Roll Packages from 9d00fb1 to f1a3da2 (5 revisions) (flutter/flutter#156538)
2024-10-10 [email protected] Update Android plugin templates for newer AGP (flutter/flutter#156533)
2024-10-10 [email protected] Flutter templates example app Gradle memory settings (flutter/flutter#156201)
2024-10-10 [email protected] Roll Flutter Engine from 3a95d6e1ddbf to 590babc1581b (1 revision) (flutter/flutter#156498)
2024-10-10 [email protected] [canvaskit] Unskip cupertino datepicker tests (flutter/flutter#156499)
2024-10-10 [email protected] Add test for animated list example (flutter/flutter#156452)
2024-10-09 [email protected] Roll Flutter Engine from fb0b59d9438b to 3a95d6e1ddbf (1 revision) (flutter/flutter#156492)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 12, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 6, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 7, 2025
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
flutter/flutter@2d45fb3...6790525

2024-10-10 [email protected] Roll Packages from 9d00fb1 to f1a3da2 (5 revisions) (flutter/flutter#156538)
2024-10-10 [email protected] Update Android plugin templates for newer AGP (flutter/flutter#156533)
2024-10-10 [email protected] Flutter templates example app Gradle memory settings (flutter/flutter#156201)
2024-10-10 [email protected] Roll Flutter Engine from 3a95d6e1ddbf to 590babc1581b (1 revision) (flutter/flutter#156498)
2024-10-10 [email protected] [canvaskit] Unskip cupertino datepicker tests (flutter/flutter#156499)
2024-10-10 [email protected] Add test for animated list example (flutter/flutter#156452)
2024-10-09 [email protected] Roll Flutter Engine from fb0b59d9438b to 3a95d6e1ddbf (1 revision) (flutter/flutter#156492)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
flutter/flutter@2d45fb3...6790525

2024-10-10 [email protected] Roll Packages from a287e8e to fb09dec (5 revisions) (flutter/flutter#156538)
2024-10-10 [email protected] Update Android plugin templates for newer AGP (flutter/flutter#156533)
2024-10-10 [email protected] Flutter templates example app Gradle memory settings (flutter/flutter#156201)
2024-10-10 [email protected] Roll Flutter Engine from 3a95d6e1ddbf to 590babc1581b (1 revision) (flutter/flutter#156498)
2024-10-10 [email protected] [canvaskit] Unskip cupertino datepicker tests (flutter/flutter#156499)
2024-10-10 [email protected] Add test for animated list example (flutter/flutter#156452)
2024-10-09 [email protected] Roll Flutter Engine from fb0b59d9438b to 3a95d6e1ddbf (1 revision) (flutter/flutter#156492)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants