Skip to content

[Bug] ContentViewRespondsWhenViewRemoved test fails on Catalyst #32368

@rmarinho

Description

@rmarinho

Description

The test ContentViewRespondsWhenViewRemoved in ContentViewTests.iOS.cs fails when running on Catalyst, but passes on iOS. This creates a gap in test coverage between platforms.

See: https://github.com/dotnet/maui/blob/d4eb91b9de1bb22bae7aad738ef0e13ac4eb41cd/src/Controls/tests/DeviceTests/Elements/ContentView/ContentViewTests.iOS.cs

On Catalyst, after removing the content and measuring, the size is not (0,0) as expected by the test.

Image

Steps to Reproduce

  1. Build and run MAUI DeviceTests targeting Catalyst.
  2. Run ContentViewRespondsWhenViewRemoved test.
  3. The test fails on Catalyst (but not on iOS).

Version with bug

main

Affected platforms

macOS

Affected platform versions

Catalyst (current main)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-generalGeneral issues that span multiple controls, or common base classes such as View or Elementarea-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenters/triagedIssue has been reviewedt/bugSomething isn't workingtesting-green-citesting-reenable

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions