Frontend component should auto load auth coomponent (#15606)
This commit is contained in:
parent
ef3a83048c
commit
33f1577dac
2 changed files with 14 additions and 1 deletions
|
@ -29,7 +29,8 @@ from homeassistant.util.yaml import load_yaml
|
||||||
REQUIREMENTS = ['home-assistant-frontend==20180720.0']
|
REQUIREMENTS = ['home-assistant-frontend==20180720.0']
|
||||||
|
|
||||||
DOMAIN = 'frontend'
|
DOMAIN = 'frontend'
|
||||||
DEPENDENCIES = ['api', 'websocket_api', 'http', 'system_log', 'onboarding']
|
DEPENDENCIES = ['api', 'websocket_api', 'http', 'system_log',
|
||||||
|
'auth', 'onboarding']
|
||||||
|
|
||||||
CONF_THEMES = 'themes'
|
CONF_THEMES = 'themes'
|
||||||
CONF_EXTRA_HTML_URL = 'extra_html_url'
|
CONF_EXTRA_HTML_URL = 'extra_html_url'
|
||||||
|
|
|
@ -336,3 +336,15 @@ async def test_lovelace_ui_load_err(hass, hass_ws_client):
|
||||||
assert msg['type'] == wapi.TYPE_RESULT
|
assert msg['type'] == wapi.TYPE_RESULT
|
||||||
assert msg['success'] is False
|
assert msg['success'] is False
|
||||||
assert msg['error']['code'] == 'load_error'
|
assert msg['error']['code'] == 'load_error'
|
||||||
|
|
||||||
|
|
||||||
|
async def test_auth_load(mock_http_client):
|
||||||
|
"""Test auth component loaded by default."""
|
||||||
|
resp = await mock_http_client.get('/auth/providers')
|
||||||
|
assert resp.status == 200
|
||||||
|
|
||||||
|
|
||||||
|
async def test_onboarding_load(mock_http_client):
|
||||||
|
"""Test onboarding component loaded by default."""
|
||||||
|
resp = await mock_http_client.get('/api/onboarding')
|
||||||
|
assert resp.status == 200
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue