mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
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 9c628f089792dbbc417a185c5933d6cbcd54dd31.
This commit is contained in:
@ -22,11 +22,11 @@ componentTest("default", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
test(assert) {
|
test(assert) {
|
||||||
assert.equal(
|
const text = find(".overflow")
|
||||||
find(".overflow")
|
.text()
|
||||||
.text()
|
.trim();
|
||||||
.trim(),
|
|
||||||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\nFusce convallis faucibus tortor quis vestibulum. Phasellus pharetra dolor eget imperdiet..."
|
assert.ok(text.startsWith("Lorem ipsum dolor sit amet"));
|
||||||
);
|
assert.ok(text.endsWith("..."));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user