Skip to content

Conversation

@IldySilva
Copy link
Contributor

Write Tests for API Examples of autoffil_group as part of #130459

This are tests of snippets used in AutofillGroup class

Pre-launch Checklist

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

@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 8, 2024
@IldySilva IldySilva force-pushed the add-test-for-autofill_group.0-api-example branch from b77893b to 997817c Compare October 8, 2024 23:18
@IldySilva IldySilva force-pushed the add-test-for-autofill_group.0-api-example branch from 997817c to 16b8a54 Compare October 8, 2024 23:22
@IldySilva
Copy link
Contributor Author

@bleroux can you check it,please?

@IldySilva IldySilva changed the title add test for autofill api example Add test for AutofillGroup api example Oct 9, 2024
Copy link
Contributor

@bleroux bleroux left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

See my comment about the formatting.
Also can you add more checks to verify all TextField's autofillHints value? (Reading the sample code, I see some have AutofillHints.streetAddressLine2 and also creditCardNumber, creditCardSecurityCode and telephoneNumber.

Because this example is related to the AutofillGroup feature, it probably would make sense to check the number of AutofilGroup widgets created (similarly to how you checked the number of TextField).

@IldySilva IldySilva requested a review from bleroux October 10, 2024 09:31
Copy link
Contributor

@bleroux bleroux left a comment

Choose a reason for hiding this comment

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

Minor comments before merging:

  • consider adding a check for shippingAddress2, this way all the 7 text fields will be verified.
  • small typos, see my specific comments.

IldySilva and others added 5 commits October 10, 2024 14:04
Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
@IldySilva IldySilva requested a review from bleroux October 10, 2024 14:55
@IldySilva
Copy link
Contributor Author

I accidentally remove the test for shipping address 2, but it's already fixed, thank you @bleroux

Copy link
Contributor

@bleroux bleroux left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for your contribution 🙏

@bleroux bleroux requested a review from TahaTesser October 10, 2024 18:01
IldySilva and others added 3 commits October 10, 2024 19:11
Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
Copy link
Member

@TahaTesser TahaTesser left a comment

Choose a reason for hiding this comment

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

LGTM!

@IldySilva
Copy link
Contributor Author

@bleroux can be merged?🫡

@bleroux bleroux added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 12, 2024
@auto-submit auto-submit bot merged commit ba778de into flutter:master Oct 12, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 12, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 12, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 12, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 13, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 13, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 14, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 16, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 17, 2024
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
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.

3 participants