From 6b27e5fbcc496281c2ae699ceedd73baface5236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Wed, 13 Nov 2024 17:26:41 +0800 Subject: [PATCH] test: add test case --- tests/new-range.spec.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/new-range.spec.tsx b/tests/new-range.spec.tsx index 97427cf69..41397ae44 100644 --- a/tests/new-range.spec.tsx +++ b/tests/new-range.spec.tsx @@ -1098,7 +1098,7 @@ describe('NewPicker.Range', () => { it('pass tabIndex', () => { const { container } = render(
- +
, ); @@ -1255,6 +1255,13 @@ describe('NewPicker.Range', () => { }); expect(onChange).toHaveBeenCalled(); }); + + it('should disabled super prev correctly', () => { + render(); + + // Expect super prev disabled + expect(document.querySelector('.rc-picker-header-super-prev-btn-disabled')).toBeDisabled(); + }); }); it('double click now button', () => {