Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(amis): table嵌套在crud下面,setValue时通过crud进行操作,解决crud的setValue动作失效的问题 Closes #11453 #11460

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
test(amis): 使用findByTestId替换waitFor,避免在ci环境下不稳定引起流水线失败的问题
  • Loading branch information
ranwawa committed Jan 12, 2025
commit 92f19cc1303a966ba26b5c29394f0048e0905ec6
8 changes: 3 additions & 5 deletions packages/amis/__tests__/renderers/BarCode.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {makeEnv, wait} from '../helper';
import 'jest-canvas-mock';

test('Renderer:bar-code', async () => {
const {container} = render(
const {findByTestId} = render(
amisRender(
{
type: 'page',
Expand All @@ -19,9 +19,7 @@ test('Renderer:bar-code', async () => {
makeEnv({})
)
);
await waitFor(() =>
expect(container.querySelector('.cxd-BarCode')).toBeInTheDocument()
);

expect(container).toMatchSnapshot();
const barcodeElement = await findByTestId('barcode');
expect(barcodeElement).toBeInTheDocument();
});

This file was deleted.