mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: prevents exception when showing replacements (#28543)
This commit is contained in:
parent
981110d96e
commit
3eb7aa866c
@ -9,7 +9,7 @@ export default class AdminWatchedWord extends Component {
|
||||
@service dialog;
|
||||
|
||||
get tags() {
|
||||
return this.args.word.replacement.replacement.split(",");
|
||||
return this.args.word.replacement.split(",");
|
||||
}
|
||||
|
||||
@action
|
||||
|
@ -147,6 +147,18 @@ acceptance("Admin - Watched Words", function (needs) {
|
||||
assert.dom(".d-modal__body li .match").hasText("Hello");
|
||||
assert.dom(".d-modal__body li .tag").hasText("greeting");
|
||||
});
|
||||
|
||||
test("showing/hidding words - tag", async function (assert) {
|
||||
await visit("/admin/customize/watched_words/action/tag");
|
||||
|
||||
await click(".show-words-checkbox");
|
||||
|
||||
assert.dom(".watched-word").hasText(" hello → greeting");
|
||||
|
||||
await click(".show-words-checkbox");
|
||||
|
||||
assert.dom(".watched-word").doesNotExist();
|
||||
});
|
||||
});
|
||||
|
||||
acceptance("Admin - Watched Words - Emoji Replacement", function (needs) {
|
||||
|
Loading…
Reference in New Issue
Block a user