DEV: adds a caret option to widget dropdown (#9588)

This commit is contained in:
Joffrey JAFFEUX
2020-04-29 19:37:21 +02:00
committed by GitHub
parent 08fbf199ad
commit a1b9150512
2 changed files with 19 additions and 0 deletions

View File

@ -302,3 +302,18 @@ widgetTest("bodyClass option", {
assert.ok(body().classList.contains("and-yet-small"));
}
});
widgetTest("caret option", {
template: TEMPLATE,
beforeEach() {
this.setProperties(DEFAULT_CONTENT);
this.set("options", { caret: true });
},
test(assert) {
assert.ok(
exists("#my-dropdown .widget-dropdown-header .d-icon-caret-down")
);
}
});