ui: keep policy controls close to their labels

This commit is contained in:
AttilaNet
2026-11-13 08:08:12 +08:00
parent 1b1fa96984
commit 2cb50839b5
16 changed files with 444 additions and 58 deletions
@@ -13,6 +13,7 @@ import time
import unittest
from urllib.parse import urlsplit
from ranch_web import __version__
from .test_workbench_browser import AVAILABLE, EDGE
if AVAILABLE:
@@ -315,7 +316,7 @@ class QuietUIBrowserTests(unittest.TestCase):
expect(spinner).to_have_attribute("aria-label", "加载中")
expect(spinner).to_have_text("")
expect(spinner.locator(".loading-spinner")).to_have_attribute("aria-hidden", "true")
expect(self.page.locator("#app-version")).to_have_text("2.0.5")
expect(self.page.locator("#app-version")).to_have_text(__version__)
expect(self.page.locator("#access-mode")).to_have_text("")
expect(self.page.locator("#log-panel")).to_have_count(1)
expect(self.page.locator('[role="log"]')).to_have_count(1)