Skip to content

Commit

Permalink
test: fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Apr 21, 2024
1 parent e75cb11 commit 8976dbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/form/__tests__/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ describe('Form', () => {
mark: 'pro_table_render',
render: (_: any, doms: any) => (
<div>
<h1>warning title</h1>
<div className="bamboo">warning title</div>
{doms.input}
{doms.errorList}
{doms.extra}
Expand All @@ -1236,7 +1236,7 @@ describe('Form', () => {
</Form>,
);

expect(container.querySelector('h1')!).toHaveTextContent(/warning title/i);
expect(container.querySelector('.bamboo')!).toHaveTextContent(/warning title/i);
});

it('Form Item element id will auto add form_item prefix if form name is empty and item name is in the black list', async () => {
Expand Down

0 comments on commit 8976dbb

Please sign in to comment.