Skip to content

[web] Trim kWebTestFileKnownFailures - #194877

Merged
auto-submit[bot] merged 2 commits into
flutter:masterfrom
mdebbar:flutter-web-test-ignore-list
Oct 21, 2026
Merged

auto-submit[bot] merged 2 commits into
flutter:masterfrom
mdebbar:flutter-web-test-ignore-list

Conversation

@mdebbar

@mdebbar mdebbar commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Most entries in kWebTestFileKnownFailures (framework test files excluded from the web shards) have been passing on the web for a while: performance_overlay_test.dart, html_element_view_test.dart, cupertino/scaffold_test.dart, and rendering/platform_view_test.dart pass on both JS and wasm and are removed from the list.

The two "not compilable" entries stay (Int64List, relative import outside the package). @TestOn('!chrome') can't replace them because flutter test --platform=chrome compiles all test files into a single entrypoint before the test runner evaluates the annotation. The JS and wasm lists are now identical, so the map is collapsed into one list.

test/material/text_field_test.dart still has 3 failing cases on the web, but that file is under the Material code freeze (#188444), so it stays in the list with a TODO. The web fix for that test lives in material_ui: flutter/packages#13358

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Oct 20, 2026
@github-actions

Copy link
Copy Markdown

This pull request contains changes to Material or Cupertino, which are currently frozen in this repository.

Changes should be made in material_ui and/or cupertino_ui in the flutter/packages repository.

Please refer to #188444 for instructions.

@github-actions github-actions Bot added a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages team-web Owned by Web platform team labels Oct 20, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request simplifies the web test suite runner by converting kWebTestFileKnownFailures from a map to a flat list and removing several previously skipped tests. In text_field_test.dart, tests are updated to skip on unsupported platforms, and drag-selection tests are refactored to use absolute coordinates via moveTo instead of relative offsets. Feedback on the changes identifies an inaccurate comment in text_field_test.dart that refers to 'Bonaventure' instead of 'Guy-Concordia' at index 30.

@mdebbar mdebbar changed the title [web] Fix text_field_test.dart on web and trim kWebTestFileKnownFailures [web] Trim kWebTestFileKnownFailures Oct 20, 2026

@harryterkelsen harryterkelsen 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

@github-actions github-actions Bot removed a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages labels Oct 20, 2026
@mdebbar mdebbar added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 21, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Oct 21, 2026
Merged via the queue into flutter:master with commit 9724b5c Oct 21, 2026
24 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Oct 21, 2026
LongCatIsLooong pushed a commit to LongCatIsLooong/flutter that referenced this pull request Oct 22, 2026
Most entries in `kWebTestFileKnownFailures` (framework test files
excluded from the web shards) have been passing on the web for a while:
`performance_overlay_test.dart`, `html_element_view_test.dart`,
`cupertino/scaffold_test.dart`, and `rendering/platform_view_test.dart`
pass on both JS and wasm and are removed from the list.

The two "not compilable" entries stay (`Int64List`, relative import
outside the package). `@TestOn('!chrome')` can't replace them because
`flutter test --platform=chrome` compiles all test files into a single
entrypoint before the test runner evaluates the annotation. The JS and
wasm lists are now identical, so the map is collapsed into one list.

`test/material/text_field_test.dart` still has 3 failing cases on the
web, but that file is under the Material code freeze
(flutter#188444), so it stays in the
list with a TODO. The web fix for that test lives in `material_ui`:
flutter/packages#13358
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Oct 28, 2026
Follow-up to flutter/flutter#194877.

`long press drag extends the selection to the word under the drag and shows toolbar on lift on non-Apple platforms` is skipped on the web, but the only thing that actually breaks there is the drag geometry: `textOffsetToPosition` nudges the position by 1px on web, so `moveBy(const Offset(-200, 0))` lands exactly on the glyph boundary between `Peel` and the following space, and `getWordAtOffset` resolves to the whitespace instead of the word. `_expectMaterialToolbarForPartialSelection()` already handles `isContextMenuProvidedByPlatform`, so the skip is not needed once the drag targets are fixed.

This PR drags to the middle of each target word instead of relative offsets, drops the skip, and tags the test with `reduced-web-test-set` so it runs on the web shards. Verified with `flutter test`, `flutter test --platform chrome`, and `flutter test --platform chrome --wasm`.

Test-only change, so no version bump or CHANGELOG entry is needed.
suryaKommana2662 pushed a commit to suryaKommana2662/flutter that referenced this pull request Oct 29, 2026
Most entries in `kWebTestFileKnownFailures` (framework test files
excluded from the web shards) have been passing on the web for a while:
`performance_overlay_test.dart`, `html_element_view_test.dart`,
`cupertino/scaffold_test.dart`, and `rendering/platform_view_test.dart`
pass on both JS and wasm and are removed from the list.

The two "not compilable" entries stay (`Int64List`, relative import
outside the package). `@TestOn('!chrome')` can't replace them because
`flutter test --platform=chrome` compiles all test files into a single
entrypoint before the test runner evaluates the annotation. The JS and
wasm lists are now identical, so the map is collapsed into one list.

`test/material/text_field_test.dart` still has 3 failing cases on the
web, but that file is under the Material code freeze
(flutter#188444), so it stays in the
list with a TODO. The web fix for that test lives in `material_ui`:
flutter/packages#13358
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD team-web Owned by Web platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants