DEV: Ensure tests work when plugin CSS is loaded (#108)

CSS can slightly affect the result of element.innerText. Preparation for https://github.com/discourse/discourse/pull/18668
This commit is contained in:
David Taylor 2022-10-19 15:53:21 +01:00 committed by GitHub
parent d941844fa8
commit c083f0140a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -43,8 +43,10 @@ acceptance("Docs", function (needs) {
await click("#toggle-hamburger-menu");
await click(".docs-link");
assert.equal(query(".docs-category").innerText.trim(), "bug 119");
assert.equal(query(".docs-tag").innerText.trim(), "something 74");
assert.equal(query(".docs-category .docs-item-id").innerText, "bug");
assert.equal(query(".docs-category .docs-item-count").innerText, "119");
assert.equal(query(".docs-tag .docs-item-id").innerText, "something");
assert.equal(query(".docs-tag .docs-item-count").innerText, "74");
assert.equal(
query(".docs-topic-link").innerText.trim(),
"Importing from Software X"