mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
fix(amis): 修正range.test.tsx用例
This commit is contained in:
parent
3b79736ea5
commit
835f0db151
@ -14,6 +14,7 @@ test('EventAction:inputRange', async () => {
|
||||
type: 'input-range',
|
||||
name: 'range',
|
||||
value: 10,
|
||||
min: 0,
|
||||
showInput: true,
|
||||
clearabled: true,
|
||||
onEvent: {
|
||||
@ -117,7 +118,7 @@ test('EventAction:inputRange', async () => {
|
||||
});
|
||||
|
||||
// 滑动 change
|
||||
const slider = container.querySelector('.cxd-InputRange-handle-icon')!;
|
||||
const slider = container.querySelector('.cxd-InputRange-handle-drage')!;
|
||||
fireEvent.mouseDown(slider);
|
||||
fireEvent.mouseMove(slider, {
|
||||
clientX: 0,
|
||||
|
Loading…
Reference in New Issue
Block a user