test(browser): restore the safety backup policy on system reset
The Recovery policy test in workspace-system-backups saves safety_backup false at runtime, and /__test__/system/reset restored config.json but not PromptManagerConfig.SAFETY_BACKUP. A later spec on the same server (Tag output images review) then saw "No safety backup (the policy is off)". The new #369 test shifted the CI shards so the two met on one worker.
This commit is contained in:
@@ -105,6 +105,9 @@ def register_system_commands(app, routes, api, root: Path):
|
||||
PromptManagerConfig.THUMBNAIL_FORMAT,
|
||||
PromptManagerConfig.THUMBNAIL_QUALITY,
|
||||
PromptManagerConfig.THUMBNAIL_EDGE,
|
||||
# The Recovery policy toggle (workspace-system-backups) saves it at
|
||||
# runtime; a later spec on the same server reads it (#369 CI).
|
||||
PromptManagerConfig.SAFETY_BACKUP,
|
||||
)
|
||||
from py.api import thumbnail_encode
|
||||
|
||||
@@ -143,6 +146,7 @@ def register_system_commands(app, routes, api, root: Path):
|
||||
PromptManagerConfig.THUMBNAIL_FORMAT,
|
||||
PromptManagerConfig.THUMBNAIL_QUALITY,
|
||||
PromptManagerConfig.THUMBNAIL_EDGE,
|
||||
PromptManagerConfig.SAFETY_BACKUP,
|
||||
) = host_values
|
||||
thumbnail_encode.reset_encoders()
|
||||
image_monitor._monitor_instance = monitor
|
||||
|
||||
Reference in New Issue
Block a user