Skip to content

InputDecorator M3 tests migration - Step5 - Helper/Counter/Error #144932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

bleroux
Copy link
Contributor

@bleroux bleroux commented Mar 11, 2024

Description

This PR migrates InputDecorator helper/counter/error related tests to M3 and adds some missing tests.

It is the fifth step for the M3 test migration for InputDecorator.
Step 1: #142981
Step 2: #143369
Step 3: #143520
Step 4: #144169

Related Issue

Related to #139076
fixes #138213

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Mar 11, 2024
@bleroux
Copy link
Contributor Author

bleroux commented Mar 11, 2024

@justinmc
Unfortunately, the diff is not as readable as I had expected (this is because I moved some tests around, the main part for this PR starts at line 1506).
I organized the helper/counter/error tests using a hierarchy of groups that mimics M3 spec, see https://m3.material.io/components/text-fields/specs#f967d3f6-0139-43f7-8336-510022684fd1). I will probably use this same structure for future PRs and apply it to the tests I added in my previous PRs. I think it makes easier to see if we have full coverage for the M3 spec.

I added some TODO for values that are not compliant with the M3 spec. I will focus on fixing those values for my next PRs (these might be breaking changes so I did not bundle those changes with this test only PR).

@bleroux bleroux force-pushed the M3_tests_migration_input_decorator_helper_counter_error branch 3 times, most recently from 244b367 to fcdcb59 Compare March 11, 2024 20:03
Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

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

LGTM 👍 No worries about the diff, it wasn't too bad. Thanks for another step in this project.

Comment on lines +1520 to +1521
// TODO(bleroux): make the InputDecorator implementation compliant with M3 spec by changing
// the helperGap to 4.0 instead of 8.0.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Is there an issue you could link for this?

Copy link
Contributor Author

@bleroux bleroux Mar 12, 2024

Choose a reason for hiding this comment

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

Added a link to #144984, and currently working on a PR for it.

});
});

group('Multilines error/helper', () {
Copy link
Contributor

Choose a reason for hiding this comment

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

Super nit: I would just say "Multiline" with no "s".

@bleroux bleroux force-pushed the M3_tests_migration_input_decorator_helper_counter_error branch 2 times, most recently from c8763f4 to 18a8cce Compare March 12, 2024 18:41
@bleroux bleroux force-pushed the M3_tests_migration_input_decorator_helper_counter_error branch from 18a8cce to 9ac7472 Compare March 13, 2024 06:38
@bleroux bleroux added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 13, 2024
@auto-submit auto-submit bot merged commit 34b454f into flutter:master Mar 13, 2024
@bleroux bleroux deleted the M3_tests_migration_input_decorator_helper_counter_error branch March 13, 2024 07:17
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 13, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 13, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 13, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 13, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 13, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 13, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 14, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 14, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 14, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 14, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 14, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 14, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 14, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 15, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 15, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 15, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 15, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 15, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 15, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 16, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 16, 2024
auto-submit bot pushed a commit that referenced this pull request Mar 18, 2024
## Description

This PR migrates `InputDecorator.constraints` related tests to M3 and also various regression tests.

It is the fifth step for the M3 test migration for `InputDecorator`.
Step 1: #142981
Step 2: #143369
Step 3: #143520
Step 4: #144169
Step 5: #144932

## Related Issue

Related to #139076

@justinmc A somewhat small PR, I wanted to migrate the small group related to 'InputDecoration.constraints' (starting at line 2801), it adds a test checking min interactive height and two others that shows one way to bypass the standard min interactive height.
auto-submit bot pushed a commit that referenced this pull request Mar 29, 2024
## Description

This PRs adds a test group for the input decorator container, this group is organised similarly to the M3 spec, see https://m3.material.io/components/text-fields/specs.

It is step 7 for the M3 test migration for `InputDecorator`.
Step 1: #142981
Step 2: #143369
Step 3: #143520
Step 4: #144169
Step 5: #144932
Step 6: #145213

## Related Issue

Related to #139076

@justinmc The diff is not very readable. The tests added by this PR are from line 298 to line 975. Other changes are due to moving some existing tests to this new 'container' group.
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 14, 2024
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 f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InputDecorator helper text color does not default to hint color with M3 (it did with M2)
2 participants