Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
test(data): wait for the grid to mark the clicked row selected before copying
milind-sonica6d06fa2762
diff --git a/src/components/data/DataGrid.test.ts b/src/components/data/DataGrid.test.tsindex 2cb3b7ceaf..d813240fe5 100644--- a/src/components/data/DataGrid.test.ts+++ b/src/components/data/DataGrid.test.ts@@ -79,7 +79,7 @@ describe("AG Grid component lifecycle", () => {if (selected) {const cell = host.querySelector<HTMLElement>('.ag-row[row-index="1"] .ag-cell')!;flushSync(() => cell.click());- expect(host.querySelector('.ag-row[row-index="1"]')?.getAttribute("aria-selected")).toBe("true");+ await vi.waitFor(() => expect(host.querySelector('.ag-row[row-index="1"]')?.getAttribute("aria-selected")).toBe("true"));}const viewport = host.querySelector('[data-testid="data-grid-viewport"]')!;flushSync(() => viewport.dispatchEvent(new KeyboardEvent("keydown", { key: "c", [modifier]: true, bubbles: true, cancelable: true })));