parent
7673899a6b
commit
655941b79c
|
@ -58,9 +58,8 @@ acceptance("Admin - Watched Words", function (needs) {
|
||||||
test("add words", async function (assert) {
|
test("add words", async function (assert) {
|
||||||
await visit("/admin/customize/watched_words/action/block");
|
await visit("/admin/customize/watched_words/action/block");
|
||||||
|
|
||||||
click(".show-words-checkbox");
|
await click(".show-words-checkbox");
|
||||||
fillIn(".watched-word-form input", "poutine");
|
await fillIn(".watched-word-form input", "poutine");
|
||||||
|
|
||||||
await click(".watched-word-form button");
|
await click(".watched-word-form button");
|
||||||
|
|
||||||
let found = [];
|
let found = [];
|
||||||
|
@ -74,21 +73,20 @@ acceptance("Admin - Watched Words", function (needs) {
|
||||||
assert.strictEqual(count(".watched-words-list .case-sensitive"), 0);
|
assert.strictEqual(count(".watched-words-list .case-sensitive"), 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("add case-sensitve words", async function (assert) {
|
test("add case-sensitive words", async function (assert) {
|
||||||
await visit("/admin/customize/watched_words/action/block");
|
await visit("/admin/customize/watched_words/action/block");
|
||||||
|
|
||||||
click(".show-words-checkbox");
|
await click(".show-words-checkbox");
|
||||||
fillIn(".watched-word-form input", "Discourse");
|
await fillIn(".watched-word-form input", "Discourse");
|
||||||
click(".case-sensitivity-checkbox");
|
await click(".case-sensitivity-checkbox");
|
||||||
|
|
||||||
await click(".watched-word-form button");
|
await click(".watched-word-form button");
|
||||||
|
|
||||||
assert
|
assert
|
||||||
.dom(".watched-words-list .watched-word")
|
.dom(".watched-words-list .watched-word")
|
||||||
.hasText(`Discourse ${I18n.t("admin.watched_words.case_sensitive")}`);
|
.hasText(`Discourse ${I18n.t("admin.watched_words.case_sensitive")}`);
|
||||||
|
|
||||||
fillIn(".watched-word-form input", "discourse");
|
await fillIn(".watched-word-form input", "discourse");
|
||||||
click(".case-sensitivity-checkbox");
|
await click(".case-sensitivity-checkbox");
|
||||||
await click(".watched-word-form button");
|
await click(".watched-word-form button");
|
||||||
|
|
||||||
assert
|
assert
|
||||||
|
|
Loading…
Reference in New Issue