mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 02:09:54 +08:00
FIX: fix flaky test from settings editor PR (discouse:main:80f5018) (#22834)
This commit is contained in:
parent
de6070fac4
commit
e7208ab4c6
|
@ -2,6 +2,7 @@ import { module, test } from "qunit";
|
|||
import { setupRenderingTest } from "discourse/tests/helpers/component-test";
|
||||
import { render } from "@ember/test-helpers";
|
||||
import { hbs } from "ember-cli-htmlbars";
|
||||
|
||||
/*
|
||||
example valid content for ace editor:
|
||||
[
|
||||
|
@ -56,7 +57,8 @@ module(
|
|||
)
|
||||
}} />`);
|
||||
const lines = document.querySelectorAll(".ace_line");
|
||||
assert.strictEqual(lines[0].innerHTML, "[");
|
||||
const indexOf = lines[0].innerHTML.indexOf("[");
|
||||
assert.ok(indexOf >= 0);
|
||||
});
|
||||
|
||||
test("input is valid json", async function (assert) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user