Matt Boetger 90211b9915
Platform View Hide/Show Integration test (#179902)
Adds an integration test that would have caught the issue with
https://github.com/flutter/flutter/pull/176063

The test is simple. It hides, shows, then hides at platform view. If the
issue is present, the UI will be come frozen and the button text will
not correctly update. So you'll see no platform view showing, but the
button will read, "Hide Platform View" instead of "Show Platform View".
Checking this through the FlutterDriver is not enough (because the
widget tree is updated). The actual UI rendered to the Android device
needs to be checked (thus the golden screenshot is necessary).

Adding this integration test should ensure content sizing does not cause
this issue again.

Test failing with Content Sizing changes:
[PlatformView Integration Test
Failing.webm](https://github.com/user-attachments/assets/c6b5f5e9-1856-4baf-a425-b4d2a38b8d57)

Test passing with Content Sizing changes w/fix:
[PlatformView Integration Test
Passing.webm](https://github.com/user-attachments/assets/104acd01-895e-4321-881b-fe5aa2d96d63)

## Pre-launch Checklist

- [X] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [X] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [X] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [X] I signed the [CLA].
- [X] I listed at least one issue that this PR fixes in the description
above.
- [X] I updated/added relevant documentation (doc comments with `///`).
- [X] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [X] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [X] All existing and new tests are passing.
2025-12-17 00:28:39 +00:00
..

This directory contains tools and resources that the Flutter team uses during the development of the framework. The tools in this directory should not be necessary for developing Flutter applications, though of course, they may be interesting if you are curious.

The tests in this directory are run in the framework_tests_misc-* shards.