mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
UX: Show anchor icon instead of text when topic bump is disabled
This commit is contained in:
@ -261,10 +261,9 @@ QUnit.test("replying to post - toggle_topic_bump", async assert => {
|
||||
await composerActions.expand();
|
||||
await composerActions.selectRowByValue("toggle_topic_bump");
|
||||
|
||||
assert.equal(
|
||||
find(".composer-fields .no-bump").text(),
|
||||
I18n.t("composer.no_topic_bump"),
|
||||
"no-bump text is visible"
|
||||
assert.ok(
|
||||
find(".composer-fields .no-bump").length === 1,
|
||||
"no-bump icon is visible"
|
||||
);
|
||||
|
||||
await composerActions.expand();
|
||||
@ -272,7 +271,7 @@ QUnit.test("replying to post - toggle_topic_bump", async assert => {
|
||||
|
||||
assert.ok(
|
||||
find(".composer-fields .no-bump").length === 0,
|
||||
"no-bump text is not visible"
|
||||
"no-bump icon is not visible"
|
||||
);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user