mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:57:36 +08:00
Test method for site categories random order fix
This commit is contained in:
parent
c1e62808ed
commit
b852275ced
|
@ -148,6 +148,13 @@ widgetTest("top categories - anonymous", {
|
|||
const maximum =
|
||||
count <= maxCategoriesToDisplay ? count : maxCategoriesToDisplay;
|
||||
assert.equal(find(".category-link").length, maximum);
|
||||
assert.equal(
|
||||
find(".category-link .category-name").text(),
|
||||
categoriesByCount
|
||||
.slice(0, maxCategoriesToDisplay)
|
||||
.map(c => c.name)
|
||||
.join("")
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user