Auto-fill group IDs from names in web UI
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user