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

17 lines
423 B
Plaintext
Raw Normal View History

import { acceptance } from "helpers/qunit-helpers";
acceptance("Badges");
test("Visit Badge Pages", () => {
visit("/badges");
andThen(() => {
2016-04-01 05:33:25 +08:00
ok(exists('.badge-groups .badge-card'), "has a list of badges");
});
visit("/badges/9/autobiographer");
andThen(() => {
2016-04-01 05:33:25 +08:00
ok(exists('.badge-card'), "has the badge in the listing");
ok(exists('.user-info'), "has the list of users with that badge");
});
});