Visual Selector - Small fix, Improving elements fetcher reliability (#1947)

This commit is contained in:
dgtlmoon
2023-11-09 19:13:18 +01:00
committed by GitHub
parent f9f69bf0dd
commit 99246d3e6d
2 changed files with 8 additions and 2 deletions

View File

@@ -54,6 +54,13 @@ def test_visual_selector_content_ready(client, live_server):
with open(os.path.join('test-datastore', uuid, 'elements.json'), 'r') as f:
json.load(f)
# Attempt to fetch it via the web hook that the browser would use
res = client.get(url_for('static_content', group='visual_selector_data', filename=uuid))
json.loads(res.data)
assert res.mimetype == 'application/json'
assert res.status_code == 200
# Some options should be enabled
# @todo - in the future, the visibility should be toggled by JS from the request type setting
res = client.get(