Ability to visualise trigger and filter rules against the current snapshot on the preview page

This commit is contained in:
dgtlmoon
2022-02-23 10:49:25 +01:00
committed by GitHub
parent dd384619e0
commit 014fda9058
18 changed files with 612 additions and 72 deletions

View File

@@ -129,3 +129,8 @@ def test_trigger_functionality(client, live_server):
time.sleep(sleep_time_for_fetch_thread)
res = client.get(url_for("index"))
assert b'unviewed' in res.data
# Check the preview/highlighter, we should be able to see what we triggered on, but it should be highlighted
res = client.get(url_for("preview_page", uuid="first"))
# We should be able to see what we ignored
assert b'<div class="triggered">foobar' in res.data