(value: string)
| 27 | const click = async (text: string) => { await act(async () => button(text).click()); }; |
| 28 | const input = () => container.querySelector<HTMLInputElement>('#config-CBM_WORKERS')!; |
| 29 | const edit = async (value: string) => { await act(async () => { Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')!.set!.call(input(), value); input().dispatchEvent(new Event('input', { bubbles: true })); }); }; |
| 30 | async function render(embedded = false, hidden = false, active = true) { await act(async () => root.render(<div hidden={hidden}><ConfigPanel embedded={embedded} active={active} project="config-test" service={service} display={DEFAULT_GRAPH_DISPLAY} onDisplay={display} onOpenBrowserModels={model} onOpenDisplay={vi.fn()} onClose={close} /></div>)); } |
| 31 | |
| 32 | describe('Config panel', () => { |
no test coverage detected