waitForDFInit
Waits for all dynamic form definitions to be initialized and ready
Hybrid approach:
- Event-based: Wait for initialized$ (tracks container components + field loading cascade)
- DOM verification: Short poll to ensure Bootstrap components fully rendered
The initialized$ observable tracks page/row/group containers. Each container waits for its children via forkJoin + afterNextRender before emitting its initialized event. This creates a cascade where parent containers only emit after all descendants are ready.
The short poll handles edge cases where Bootstrap component templates need additional change detection cycles before DOM elements match test selectors.
Presentation
function waitForDFInit (
component: DynamicForm <
RegisteredFieldTypes [],
{ [x: string]: Record<string, unknown> } & Record<string, unknown>
>,
fixture: ComponentFixture<unknown>,
): Promise<void>;Returns
Promise<void>Parameters
| Name | Type | Description |
|---|---|---|
| component | | |
| fixture | ComponentFixture<unknown> |