UX: minor tweaks to theme components selection UI (#6596)

This commit is contained in:
Joffrey JAFFEUX
2018-11-13 14:57:50 +01:00
committed by GitHub
parent c1e82e7442
commit 7fa21ce199
4 changed files with 18 additions and 18 deletions

View File

@ -69,12 +69,17 @@ componentTest("with children", {
test(assert) {
assert.expect(2);
assert.deepEqual(
Array.from(this.$(".component")).map(node => node.innerText.trim()),
childrenList.splice(0, 4).map(theme => theme.get("name")),
find(".components")
.text()
.trim(),
childrenList
.splice(0, 4)
.map(theme => theme.get("name"))
.join(", "),
"lists the first 4 children"
);
assert.deepEqual(
this.$(".others-count")
find(".others-count")
.text()
.trim(),
I18n.t("admin.customize.theme.and_x_more", { count: 1 }),