mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
UX: Trash icon displaying when there is no upload.
This commit is contained in:
parent
575d6855ea
commit
10c6211cdf
4 changed files with 26 additions and 5 deletions
14
test/javascripts/components/image-uploader-test.js.es6
Normal file
14
test/javascripts/components/image-uploader-test.js.es6
Normal file
|
@ -0,0 +1,14 @@
|
|||
import componentTest from "helpers/component-test";
|
||||
moduleForComponent("image-uploader", { integration: true });
|
||||
|
||||
componentTest("without image", {
|
||||
template: "{{image-uploader}}",
|
||||
|
||||
test(assert) {
|
||||
assert.equal(
|
||||
this.$(".d-icon-trash-o").length,
|
||||
0,
|
||||
"it does not display trash icon"
|
||||
);
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue