DEV: Fix failing test

jquery.autoellipsis tries to automatically find the available space
which depends on multiple factors which may differ between the machines
where the tests are running.

Follow-up to commit 9c628f0897.
This commit is contained in:
Bianca Nenciu 2020-01-21 19:15:29 +02:00
parent 9c628f0897
commit fe6ff1b5ab

View File

@ -22,11 +22,11 @@ componentTest("default", {
},
test(assert) {
assert.equal(
find(".overflow")
.text()
.trim(),
"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\nFusce convallis faucibus tortor quis vestibulum. Phasellus pharetra dolor eget imperdiet..."
);
const text = find(".overflow")
.text()
.trim();
assert.ok(text.startsWith("Lorem ipsum dolor sit amet"));
assert.ok(text.endsWith("..."));
}
});