mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FIX: Show tag count for existing tags (#9892)
* FIX: Show tag count for existing tags * Add test
This commit is contained in:
@ -31,7 +31,20 @@ componentTest("create a tag", {
|
||||
assert.equal(this.subject.header().value(), "foo,bar");
|
||||
|
||||
await this.subject.expand();
|
||||
await this.subject.fillInFilter("monkey");
|
||||
await this.subject.fillInFilter("mon");
|
||||
assert.equal(
|
||||
find(".select-kit-row")
|
||||
.text()
|
||||
.trim(),
|
||||
"monkey x1"
|
||||
);
|
||||
await this.subject.fillInFilter("key");
|
||||
assert.equal(
|
||||
find(".select-kit-row")
|
||||
.text()
|
||||
.trim(),
|
||||
"monkey x1"
|
||||
);
|
||||
await this.subject.keyboard("enter");
|
||||
|
||||
assert.equal(this.subject.header().value(), "foo,bar,monkey");
|
||||
|
Reference in New Issue
Block a user