fix(amis): 修正range.test.tsx用例

This commit is contained in:
wibetter 2024-04-25 11:34:24 +08:00
parent 3b79736ea5
commit 835f0db151

View File

@ -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,