home-assistant: fix login test

This commit is contained in:
ibizaman 2026-05-28 23:17:17 +02:00 committed by Pierre Penninckx
parent 2c23d8a258
commit 4bb9287aa4
2 changed files with 34 additions and 5 deletions

View file

@ -263,7 +263,6 @@ in
config = {
# Includes dependencies for a basic setup
# https://www.home-assistant.io/integrations/default_config/
default_config = { };
http = {
use_x_forwarded_for = true;
server_host = "127.0.0.1";

View file

@ -40,6 +40,36 @@ let
unit_system = "metric";
};
};
services.home-assistant.extraComponents = [
# this is effecitvely default_config (2026.5.0), but with components
# skipped that would cause ERRORs in the sandbox
"bluetooth"
"cloud"
"conversation"
"dhcp"
"energy"
"file"
# Requires go2rtc service
# "go2rtc"
"history"
# Requires DNS and HTTP queries
# "homeassistant_alerts"
"logbook"
"media_source"
"mobile_app"
"my"
"ssdp"
"stream"
"sun"
"usage_prediction"
"usb"
"webhook"
"zeroconf"
# include some popular integrations, that absolutely shouldn't break
"knx"
"zha"
];
};
clientLogin =
@ -63,10 +93,10 @@ let
"page.get_by_role('button', name=re.compile('Create my smart home')).click()"
"expect(page.get_by_text('Create user')).to_be_visible()"
"page.get_by_label(re.compile('Name')).fill('Admin')"
"page.get_by_label(re.compile('Username')).fill('admin')"
"page.get_by_label(re.compile('Password')).fill('adminpassword')"
"page.get_by_label(re.compile('Confirm password')).fill('adminpassword')"
''page.get_by_role("textbox", name="Name*", exact=True).fill('Admin')''
''page.get_by_role("textbox", name="Username*").fill('admin')''
''page.get_by_role("textbox", name="Password*", exact=True).fill('adminpassword')''
''page.get_by_role("textbox", name="Confirm password*").fill('adminpassword')''
"page.get_by_role('button', name=re.compile('Create account')).click()"
"expect(page.get_by_text('All set!')).to_be_visible()"