discourse/test/javascripts/acceptance/badges-test.js.es6

19 lines
524 B
Plaintext
Raw Normal View History

import { acceptance } from "helpers/qunit-helpers";
acceptance("Badges");
test("Visit Badge Pages", () => {
visit("/badges");
andThen(() => {
ok($('body.badges-page').length, "has body class");
ok(exists('.badge-groups .badge-card'), "has a list of badges");
});
visit("/badges/9/autobiographer");
andThen(() => {
ok(exists('.badge-card'), "has the badge in the listing");
2016-03-25 01:50:45 +08:00
ok(exists('.user-info'), "has the list of users with that badge");
ok(!exists('.badge-card:eq(0) script'));
});
});