Improve routing rule drag handling and controls
This commit is contained in:
@@ -37,13 +37,16 @@ test('routing controller owns ordered outbound drafts, capability gating and dra
|
||||
assert.match(feature, /if \(!editable \|\| blocked\) return/);
|
||||
assert.match(feature, /sameRule\(rule, savedRules\[index\]\)/);
|
||||
assert.match(feature, /sameRule\(rule, activeRules\[index\]\)/);
|
||||
assert.match(feature, /beginRuleReorder\(dragRef\.current, ruleKey, 'pointer'\)[\s\S]*setPointerCapture/);
|
||||
assert.match(feature, /beginRuleReorder\(dragRef\.current, ruleKey, 'pointer'\)[\s\S]*capture\.setPointerCapture/);
|
||||
assert.match(feature, /const capture = event\.currentTarget\.closest<HTMLElement>\('\.client-local-rules-list'\)/);
|
||||
assert.doesNotMatch(feature, /event\.currentTarget\.setPointerCapture/);
|
||||
assert.match(feature, /beginRuleReorder\(dragRef\.current, ruleKey, 'keyboard'\)/);
|
||||
assert.match(feature, /event\.detail === 0\) toggleKeyboardReorder/);
|
||||
assert.match(feature, /event\.key === 'Tab'[\s\S]*finishReorder\('focus-leave'\)/);
|
||||
assert.match(feature, /onBlur=\{\(event\) => feature\.handleReorderBlur/);
|
||||
assert.match(feature, /endRuleReorder\(session, 'unmount'\)\.stopAutoScroll/);
|
||||
assert.match(feature, /onLostPointerCapture=\{feature\.losePointerReorder\}/);
|
||||
assert.match(feature, /className=\{`client-local-rules-list[\s\S]*onPointerMove=\{feature\.movePointerReorder\}[\s\S]*onLostPointerCapture=\{feature\.losePointerReorder\}/);
|
||||
assert.match(feature, /session\.capture\.hasPointerCapture[\s\S]*session\.capture\.releasePointerCapture/);
|
||||
assert.match(feature, /keyboardEvent\.preventDefault\(\);[\s\S]*cancelReorder\(\)/);
|
||||
assert.match(feature, /stopAutoScroll\(session\)[\s\S]*Перемещение отменено/);
|
||||
assert.match(feature, /const slotCenter = \(element: HTMLElement\) => listTop \+ element\.offsetTop \+ element\.offsetHeight \/ 2/);
|
||||
|
||||
Reference in New Issue
Block a user