mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 02:43:42 +08:00
17 lines
424 B
JavaScript
17 lines
424 B
JavaScript
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
acceptance("Badges");
|
|
|
|
test("Visit Badge Pages", () => {
|
|
visit("/badges");
|
|
andThen(() => {
|
|
ok(exists('.badges-listing tr'), "has a list of badges");
|
|
});
|
|
|
|
visit("/badges/9/autobiographer");
|
|
andThen(() => {
|
|
ok(exists('.badges-listing tr'), "has the badge in the listing");
|
|
ok(exists('.badge-user'), "has the list of users with that badge");
|
|
});
|
|
});
|