Wuhp commited on
Commit
698776e
·
1 Parent(s): 8e0ab52

Regress UI expanded-state preservation and Nuclei template packaging

Browse files
Files changed (1) hide show
  1. tests/test_ui_regressions.py +15 -0
tests/test_ui_regressions.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pathlib import Path
2
+
3
+ def test_live_jobs_preserve_expanded_details():
4
+ source = Path("app/index.html").read_text()
5
+ assert "existingOpen" in source
6
+ assert "data-detail-key" in source
7
+ assert "currentScroll=window.scrollY" in source
8
+ assert "window.scrollTo({top:currentScroll" in source
9
+
10
+ def test_nuclei_has_a_bundled_template():
11
+ source = Path("app/pipeline.py").read_text()
12
+ assert "/app/app/nuclei-templates/technology-headers.yaml" in source
13
+ template = Path("app/nuclei-templates/technology-headers.yaml").read_text()
14
+ assert "id: asfb-tech-response-headers" in template
15
+ assert "severity: info" in template