Skip to content

Commit

Permalink
test: fix unit case
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Sep 24, 2024
1 parent 3727ffa commit 4a06b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cell/__test__/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Cell.vue', async () => {

it('required render', async () => {
const wrapper = mount(() => <Cell title="单行标题" required></Cell>);
const required = wrapper.find('.t-cell__title > .t-cell--required');
const required = wrapper.find('.t-cell__title > .t-cell__title-text > .t-cell--required');
expect(required.exists()).toBeTruthy();
expect(required.text()).toContain('*');
});
Expand Down

0 comments on commit 4a06b72

Please sign in to comment.