| 71 | const props: GalaxyPanelProps = { project: 'sample', visible: true, onOpenNode: vi.fn(), fetch: fetchLayout, |
| 72 | focusFilePath: 'src/service.ts' }; |
| 73 | const names = () => ((JSON.parse(host.querySelector('[data-testid="graph-data"]')!.textContent!) as GraphData) |
| 74 | .nodes.map(node => node.qualified_name).sort()); |
| 75 | const expectNames = (expected: string[]) => vi.waitFor(async () => { |
| 76 | await act(async () => { await new Promise(resolve => setTimeout(resolve, 0)); }); |
| 77 | expect(names()).toEqual(expected); |