mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-19 05:12:19 +02:00
Consolidate Odysseus agent harness and tool contracts
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
|
||||
def test_notification_copy_supports_insecure_lan_contexts():
|
||||
source = (ROOT / "static/js/admin.js").read_text(encoding="utf-8")
|
||||
|
||||
assert "async function copyNotificationText(value)" in source
|
||||
assert "navigator.clipboard?.writeText && window.isSecureContext" in source
|
||||
assert "document.execCommand('copy')" in source
|
||||
assert "await copyNotificationText(note.body)" in source
|
||||
assert "event.stopPropagation();" in source
|
||||
Reference in New Issue
Block a user