FIX: fix flaky test from settings editor PR (discouse:main:80f5018) (#22834)

This commit is contained in:
marstall 2023-07-27 17:46:58 -04:00 committed by GitHub
parent de6070fac4
commit e7208ab4c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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) {