mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-09-17 21:52:21 +02:00
20 lines
616 B
Python
20 lines
616 B
Python
from pathlib import Path
|
|
|
|
|
|
SCRIPT = (
|
|
Path(__file__).resolve().parents[1] / "static/js/document.js"
|
|
).read_text(encoding="utf-8")
|
|
|
|
|
|
def test_email_send_requires_actual_send_button_event_target():
|
|
assert "target.closest('#doc-email-send-btn')" in SCRIPT
|
|
assert "const btn = targetBtn || null;" in SCRIPT
|
|
assert "rectBtn" not in SCRIPT
|
|
assert "_eventInsideElement" not in SCRIPT
|
|
|
|
|
|
def test_email_caret_requires_actual_caret_event_target():
|
|
assert "target.closest('#doc-email-send-caret')" in SCRIPT
|
|
assert "const caret = targetCaret || null;" in SCRIPT
|
|
assert "rectCaret" not in SCRIPT
|