mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-07-09 17:08:29 +00:00
Mark message action button chrome as non-selectable so copy/paste captures message text without toolbar icon labels. Add a static regression for the shared action-buttons stylesheet.
17 lines
483 B
Python
17 lines
483 B
Python
from pathlib import Path
|
|
|
|
|
|
PROJECT_ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
|
|
def test_message_action_buttons_are_not_text_selectable() -> None:
|
|
css = PROJECT_ROOT.joinpath(
|
|
"webui",
|
|
"components",
|
|
"messages",
|
|
"action-buttons",
|
|
"simple-action-buttons.css",
|
|
).read_text(encoding="utf-8")
|
|
|
|
block = css[css.index(".step-action-buttons {"):css.index("}", css.index(".step-action-buttons {"))]
|
|
assert "user-select: none;" in block
|