Skip to content
Snippets Groups Projects
Commit 33f1577d authored by Jason Hu's avatar Jason Hu Committed by Paulus Schoutsen
Browse files

Frontend component should auto load auth coomponent (#15606)

parent ef3a8304
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,8 @@ from homeassistant.util.yaml import load_yaml
REQUIREMENTS = ['home-assistant-frontend==20180720.0']
DOMAIN = 'frontend'
DEPENDENCIES = ['api', 'websocket_api', 'http', 'system_log', 'onboarding']
DEPENDENCIES = ['api', 'websocket_api', 'http', 'system_log',
'auth', 'onboarding']
CONF_THEMES = 'themes'
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['success'] is False
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment