mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 20:02:46 +08:00
18 lines
568 B
JavaScript
18 lines
568 B
JavaScript
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
acceptance("Badges");
|
|
|
|
QUnit.test("Visit Badge Pages", assert => {
|
|
visit("/badges");
|
|
andThen(() => {
|
|
assert.ok($('body.badges-page').length, "has body class");
|
|
assert.ok(exists('.badge-groups .badge-card'), "has a list of badges");
|
|
});
|
|
|
|
visit("/badges/9/autobiographer");
|
|
andThen(() => {
|
|
assert.ok(exists('.badge-card'), "has the badge in the listing");
|
|
assert.ok(exists('.user-info'), "has the list of users with that badge");
|
|
assert.ok(!exists('.badge-card:eq(0) script'));
|
|
});
|
|
}); |