feat(vwb): load palette from catalog
This commit is contained in:
@@ -90,3 +90,38 @@ def test_vwb_catalog_execute_plans_competence_replay():
|
||||
"verify_screen",
|
||||
"pause_for_human",
|
||||
]
|
||||
|
||||
|
||||
def test_vwb_catalog_exposes_lea_mapping_actions_without_competence_noise():
|
||||
from visual_workflow_builder.backend.catalog_routes_v2_vlm import catalog_bp
|
||||
|
||||
app = Flask(__name__)
|
||||
app.register_blueprint(catalog_bp)
|
||||
|
||||
with app.test_client() as client:
|
||||
response = client.get("/api/vwb/catalog/actions")
|
||||
|
||||
assert response.status_code == 200
|
||||
data = response.get_json()
|
||||
assert data["success"] is True
|
||||
|
||||
ids = {action["id"] for action in data["actions"]}
|
||||
assert "keyboard_shortcut" in ids
|
||||
assert "pause_for_human" in ids
|
||||
assert "wait_for_state" in ids
|
||||
assert not any(action_id.startswith("lea_competence_") for action_id in ids)
|
||||
|
||||
|
||||
def test_vwb_catalog_lea_competences_are_explicit_opt_in():
|
||||
from visual_workflow_builder.backend.catalog_routes_v2_vlm import catalog_bp
|
||||
|
||||
app = Flask(__name__)
|
||||
app.register_blueprint(catalog_bp)
|
||||
|
||||
with app.test_client() as client:
|
||||
response = client.get("/api/vwb/catalog/actions?show_competences=1")
|
||||
|
||||
assert response.status_code == 200
|
||||
data = response.get_json()
|
||||
ids = {action["id"] for action in data["actions"]}
|
||||
assert "lea_competence_key_win_r_wait_explorer_exe" in ids
|
||||
|
||||
Reference in New Issue
Block a user