56 Commits

Author SHA1 Message Date
Adam Mills
3412edb843 Compute state display tests (#643)
* Move computeDomain and format functions to js

* Add tests for computeStateDisplay

* Always recalculate state display

* Remove LANGUAGE from hassUtils object

* Move AppLocalizeBehavior import to mixins

* Import mixins to state-card-display

* Safety check on computeStateDisplay

* Don't store computed domains on stateObj

* Integration tests for state-card-display

* Include extractDomain code in polymer repo

* Remove util function null checking

* Dont render test element without hass and stateObj

* Revert "Don't store computed domains on stateObj"

This reverts commit e3509d71823ff5e42a4dcf4849a98c5bb6cb391c.

* Revert "Always recalculate state display"

This reverts commit 27c24e2694ee6f7c147782532268b3a67998d49b.
2017-11-20 21:46:36 -08:00
Adam Mills
fb0b1286d2 Convert remaining elements to ES6 classes (#538)
* Convert remaining elements to ES6 classes

* Use native DOM methods for tests

* Fix Polymer 2 debounce call
2017-10-29 21:47:03 -07:00
Andrey
7c489e69bb 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
2017-08-04 22:56:52 -07:00
Andrey
1530c0c386 Allow custom 2nd line in state-info (#253)
* Allow custom 2nd line in state-info

* add tests for new functionality
2017-04-09 10:25:00 -07:00
Andrey
35c086a594 More tests for state-info.html (#256)
* Remove andrey-git keys. Add Android 7.0 emulator

* Use Chrome on Android 7.0

* Try a test that should fail on shadow dom.

* Change test

* try lightOrShadow

* More tests
2017-04-08 06:05:13 -07:00
Andrey
57512211d7 Add web-component-tester tests (#255)
* Use travis.yml from polymer

* Update .travis.yml

* Try wct tests

* Encrypt Sauce env

* More test config

* Update2

* try to remove souce_connect

* Try another config

* More browsers

* Clean tabs, test shadow dom.
2017-04-03 22:51:20 -07:00