diff --git a/packages/core/client/src/schema-component/antd/variable/__tests__/variable.test.tsx b/packages/core/client/src/schema-component/antd/variable/__tests__/variable.test.tsx index 6648dc607..b13955cef 100644 --- a/packages/core/client/src/schema-component/antd/variable/__tests__/variable.test.tsx +++ b/packages/core/client/src/schema-component/antd/variable/__tests__/variable.test.tsx @@ -12,7 +12,7 @@ describe('Variable', () => { await userEvent.click(screen.getByText('x')); await userEvent.click(screen.getByText('v1')); - await sleep(); + await sleep(100); expect(screen.getByText('v1', { selector: '.ant-tag' })).toMatchInlineSnapshot(` { expect(variableSelector).toBeInTheDocument(); await userEvent.type(input, '1+'); - await sleep(); + await sleep(100); await userEvent.click(variableSelector); await userEvent.click(screen.getByText('v1')); - await sleep(); + await sleep(100); expect(input).toMatchInlineSnapshot(`
{ await userEvent.type(input, '{{ "a": "'); await userEvent.click(variableSelector); await userEvent.click(screen.getByText('v1')); - await sleep(); + await sleep(100); await userEvent.type(input, '" }'); expect(input.value).toMatchInlineSnapshot('"{ \\"a\\": \\"{{v1}}\\" }"');