mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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 9c628f0897.
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