components
components copied to clipboard
test(menu): remove provideZoneChangeDetection for all menu tests
trafficstars
This removes 'provideZoneChangeDetection' from menu tests. Change summary:
- Many tests set inputs directly. This isn't really how it happens in applications - inputs set from the template automatically mark components for check. When tests set inputs directly like this, they need to call
markForCheckmanually (or something similar). - One test seems to be calling a public API (
CdkContextMenuTrigger.open) that failed to callmarkForCheckso that was added to the implementation fakeAsynchad an additional timer so I just addedflushto make it work.