Auto-fill group IDs from names in web UI

This commit is contained in:
Artem Kokos
2026-05-21 21:54:28 +07:00
parent f55e00bce1
commit 928e4c71b7
3 changed files with 88 additions and 2 deletions

View File

@@ -55,9 +55,15 @@ class UiSecurityTests(unittest.IsolatedAsyncioTestCase):
self.assertIn("sessionStorage", app_js)
self.assertIn("/system/info", app_js)
self.assertIn("serverInfo", app_js)
self.assertIn("slugifyGroupId", app_js)
self.assertIn("GROUP_ID_TRANSLITERATION_MAP", app_js)
self.assertIn("Комнаты, сцены и свет", index_html)
self.assertIn("Устройства и группы", index_html)
self.assertIn("Собрать комнату из найденных ламп", index_html)
self.assertLess(
index_html.index('placeholder="Название (Спальня)"'),
index_html.index('placeholder="ID (bedroom)"'),
)
self.assertIn("Повторяющееся расписание", index_html)
self.assertIn("Гостевые и админ-ключи", index_html)
self.assertIn("О сервере", index_html)