Skip to content

Commit

Permalink
Tighten timers
Browse files Browse the repository at this point in the history
  • Loading branch information
jassmith committed Feb 7, 2024
1 parent 3782c0b commit cfc772d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/test/data-editor.test.tsx
Expand Up @@ -1094,7 +1094,7 @@ a new line char ""more quotes"" plus a tab ." https://google.com`)
key: "j",
});

await act(() => new Promise(r => window.setTimeout(r, 1000)));
await act(() => new Promise(r => window.setTimeout(r, 100)));

const overlay = screen.getByDisplayValue("j");

Expand Down Expand Up @@ -1131,7 +1131,7 @@ a new line char ""more quotes"" plus a tab ." https://google.com`)
key: "j",
});

await act(() => new Promise(r => window.setTimeout(r, 1000)));
await act(() => new Promise(r => window.setTimeout(r, 100)));

const overlay = screen.getByDisplayValue("j");

Expand Down Expand Up @@ -1647,7 +1647,7 @@ a new line char ""more quotes"" plus a tab ." https://google.com`)
clientY: 36 + 32 + 16, // Row 1 (0 indexed)
});

await act(() => new Promise(r => window.setTimeout(r, 1000)));
await act(() => new Promise(r => window.setTimeout(r, 100)));

const overlay = screen.getByDisplayValue("Data: 1, 1");
expect(document.body.contains(overlay)).toBe(true);
Expand Down

0 comments on commit cfc772d

Please sign in to comment.