✅ test: 覆盖弹窗生命周期、存储合并与插件页的时长选项

This commit is contained in:
pyh
2026-10-05 00:29:36 +08:00
parent faa3930ae8
commit 5efb311194
7 changed files with 192 additions and 13 deletions
+2
View File
@@ -137,6 +137,8 @@ test('applying the plugin registers its three seats without touching the DOM', (
assert.equal(typeof configProps.testAny, 'function')
assert.equal(typeof configProps.testSystem, 'function')
assert.equal(typeof configProps.setKind, 'function')
assert.equal(typeof configProps.setDismiss, 'function')
assert.equal(configProps.store.getSnapshot().dismissAfterMs, 6000, 'a browser with no stored choice gets the shipped lifetime')
assert.equal(configProps.replayCount(), 0)
// No locale service in this fake context, so the plugin's own translator falls
// back to its English dictionary.