1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 20:55:49 +00:00

Make tests pass (#374)

* wct misbehaves on hyphen casing on FF

* Upgrade web-component-tester to 6.0.0

* Update some bower packages to prevent conflicts

* Pin webcomponentsjs to 1.0.4
This commit is contained in:
Andrey
2017-08-05 08:56:52 +03:00
committed by Paulus Schoutsen
parent fb3c278a74
commit 7c489e69bb
3 changed files with 14 additions and 10 deletions

View File

@@ -6,12 +6,12 @@
<link rel="import" href="../src/components/entity/state-info.html">
</head>
<body>
<test-fixture id="state-info-secondary-line">
<test-fixture id="stateInfoSecondaryLine">
<template>
<state-info secondary-line><my-elem>text</my-elem></state-info>
</template>
</test-fixture>
<test-fixture id="state-info">
<test-fixture id="stateInfo">
<template>
<state-info></state-info>
</template>
@@ -28,7 +28,7 @@
var si;
setup(function() {
si = fixture('state-info');
si = fixture('stateInfo');
window.HAWS = {};
window.HAWS.extractDomain = function (entityId) {
return entityId.substr(0, entityId.indexOf('.'));
@@ -84,7 +84,7 @@
});
test('secondary line', function(done) {
si = fixture('state-info-secondary-line');
si = fixture('stateInfoSecondaryLine');
si.stateObj = {entity_id: 'light.demo', last_changed: '2017-01-01T00:00:00+00:00', state: 'off', attributes: {friendly_name: 'Name'}};
si.inDialog = false;
flush(function() {