This commit is contained in:
2026-08-07 10:45:15 +08:00
parent ac762ed302
commit 54fe05d864
4 changed files with 29 additions and 7 deletions
+7
View File
@@ -65,6 +65,13 @@ test('unsaved registrations use instance ownership so stale cached views cannot
assert.match(unsavedSource, /store\.remove\(options\.key, owner\)/)
})
test('unsaved registration only tracks the dirty ref and cannot subscribe to its own store writes', () => {
assert.match(unsavedSource, /watch\(options\.dirty, \(dirty\) =>/)
assert.match(unsavedSource, /\}, \{ immediate: true \}\)/)
assert.doesNotMatch(unsavedSource, /watchEffect/)
assert.match(unsavedSource, /current\.routeKey === entry\.routeKey[\s\S]*current\.dirty === entry\.dirty\) return/)
})
test('the tab strip keeps touch targets and horizontal navigation usable on narrow screens', () => {
assert.match(tabStyles, /overflow-x: auto/)
assert.match(tabStyles, /scrollbar-width: none/)