mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 00:48:05 +08:00
FEATURE: adds an API to register topic footer buttons
This commit is contained in:
@ -36,27 +36,11 @@ componentTest("default", {
|
||||
.value(),
|
||||
null
|
||||
);
|
||||
assert.equal(
|
||||
this.get("subject")
|
||||
.rowByIndex(0)
|
||||
.name(),
|
||||
"Bookmark"
|
||||
);
|
||||
assert.equal(
|
||||
this.get("subject")
|
||||
.rowByIndex(1)
|
||||
.name(),
|
||||
"Share"
|
||||
);
|
||||
assert.notOk(
|
||||
this.get("subject")
|
||||
.selectedRow()
|
||||
.exists(),
|
||||
"it doesn’t preselect first row"
|
||||
);
|
||||
|
||||
await this.get("subject").selectRowByValue("share");
|
||||
|
||||
assert.equal(this.get("value"), null, "it resets the value");
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user