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

17 lines
424 B
Plaintext
Raw Normal View History

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(() => {
2015-11-05 05:21:52 -05:00
ok(exists('.badges-listing div'), "has the badge in the listing");
2016-03-24 13:50:45 -04:00
ok(exists('.user-info'), "has the list of users with that badge");
});
});