Skip to content

Commit 24bd725

Browse files
zenggpzqbxafc163meet-student
authored
test(Transfer): should be no class name for the selected state,when transfer is disabled (ant-design#56316)
Co-authored-by: afc163 <afc163@gmail.com> Co-authored-by: 遇见同学 <1875694521@qq.com>
1 parent 37738e5 commit 24bd725

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

components/transfer/__tests__/index.test.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,11 @@ describe('Transfer', () => {
961961
});
962962
});
963963

964+
it('should be no class name for the selected state,when transfer is disabled', () => {
965+
const { container } = render(<Transfer {...listCommonProps} disabled={true} />);
966+
expect(container.querySelectorAll('.ant-transfer-list-content-item-checked')).toHaveLength(0);
967+
});
968+
964969
describe('form disabled', () => {
965970
it('should support Form disabled', () => {
966971
const { container } = render(

0 commit comments

Comments
 (0)