mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-09-26 10:02:20 +02:00
Squash Odysseus development history
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
|
||||
def test_agent_thread_chevron_uses_css_shape_in_live_and_history_renderers():
|
||||
live = (ROOT / "static/js/chat.js").read_text()
|
||||
history = (ROOT / "static/js/chatRenderer.js").read_text()
|
||||
css = (ROOT / "static/style.css").read_text()
|
||||
|
||||
for src in (live, history):
|
||||
assert 'class="agent-thread-chevron" aria-hidden="true"></span>' in src
|
||||
assert 'class="agent-thread-chevron">\\u25B6</span>' not in src
|
||||
|
||||
assert ".agent-thread-chevron::before" in css
|
||||
assert "border-top: 4px solid transparent;" in css
|
||||
assert "border-bottom: 4px solid transparent;" in css
|
||||
assert "border-left: 6px solid currentColor;" in css
|
||||
assert ".agent-thread-node.open .agent-thread-chevron::before" in css
|
||||
Reference in New Issue
Block a user