Update Harbor client and gateway functionality
This commit is contained in:
@@ -21,16 +21,33 @@ test('routing feature is the sole owner at the four existing composition positio
|
||||
|
||||
test('routing controller preserves snapshot drafts, live status and guarded close/save semantics', () => {
|
||||
assert.match(feature, /const savedRules = route\?\.localRules \|\| \[\]/);
|
||||
assert.match(feature, /baselineRef\.current = JSON\.stringify\(savedRules\.map/);
|
||||
assert.match(feature, /setRules\(savedRules\.map\(createLocalRuleDraft\)\)/);
|
||||
assert.match(feature, /baselineRef\.current = localRulesSignature\(savedRules\)/);
|
||||
assert.match(feature, /const nextRules = savedRules\.map\(createLocalRuleDraft\)/);
|
||||
assert.match(feature, /setRevision\(route\?\.localRulesRevision \|\| 0\)/);
|
||||
assert.match(feature, /if \(dirty\) \{[\s\S]*setConfirmingClose\(true\);[\s\S]*return false/);
|
||||
assert.match(feature, /const currentRules = cancelReorder\(false\)[\s\S]*localRulesSignature\(currentRules\) !== baselineRef\.current/);
|
||||
assert.match(feature, /const result = routingSaveState\(await onSave\(values, revision\)\)/);
|
||||
assert.match(feature, /if \(!result\) return;[\s\S]*baselineRef\.current = JSON\.stringify\(values\);[\s\S]*setRevision\(result\.localRulesRevision\)/);
|
||||
assert.match(feature, /if \(!result\) return;[\s\S]*baselineRef\.current = localRulesSignature\(values\);[\s\S]*setRevision\(result\.localRulesRevision\)/);
|
||||
assert.match(feature, /if \(!connected \|\| !result\.localRulesPendingRestart\) setIsOpen\(false\)/);
|
||||
assert.match(feature, /Number\.isSafeInteger\(localRulesRevision\)[\s\S]*localRulesRevision as number\) < 0[\s\S]*typeof localRulesPendingRestart !== 'boolean'/);
|
||||
});
|
||||
|
||||
test('routing controller owns ordered outbound drafts, capability gating and drag cancellation', () => {
|
||||
assert.match(feature, /map\(\(\{ type, value, enabled, outbound \}\) => \(\{ type, value, enabled, outbound \}\)\)/);
|
||||
assert.match(feature, /route\?\.rulesContractVersion === ROUTE_RULES_CONTRACT_VERSION/);
|
||||
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, '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, /keyboardEvent\.preventDefault\(\);[\s\S]*cancelReorder\(\)/);
|
||||
assert.match(feature, /stopAutoScroll\(session\)[\s\S]*Перемещение отменено/);
|
||||
});
|
||||
|
||||
test('routing lifecycle and Page orchestration keep the existing guards and blocking scopes', () => {
|
||||
assert.match(feature, /keyboardEvent\.key !== 'Escape' \|\| keyboardEvent\.defaultPrevented/);
|
||||
assert.match(feature, /addEventListener\('beforeunload', warnBeforeUnload\)/);
|
||||
|
||||
Reference in New Issue
Block a user