In iOS 15 I've got a date picker in my app that uses the .compact
style so it presents the date and time selection UI as popovers.
I can't find a way to dismiss the popover in a UI test, having tried suggestions for popover dismissal such as:
app.otherElements["PopoverDismissRegion"]
(didn't exist)app.otherElements["dismiss popup"].tap()
(didn't exist).windows.element(boundBy: 0).tap()
(just hits the centre of the screen, which is still the popover so does nothing of use)