FEATURE: allow disabling theme components (#7812)

This allows you to temporarily disable components without having to remove them from a theme. 

This feature is very handy when doing quick fix engineering.
This commit is contained in:
Osama Sayegh
2019-07-03 11:18:11 +03:00
committed by Sam
parent ecf0215ee7
commit 3d64532273
15 changed files with 238 additions and 16 deletions

View File

@ -71,11 +71,14 @@ componentTest("with children", {
assert.deepEqual(
find(".components")
.text()
.trim(),
.trim()
.split(",")
.map(n => n.trim())
.join(","),
childrenList
.splice(0, 4)
.map(theme => theme.get("name"))
.join(", "),
.join(","),
"lists the first 4 children"
);
assert.deepEqual(