2015-04-07 02:14:00 +08:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
|
|
|
|
acceptance("Badges");
|
2014-08-01 06:44:32 +08:00
|
|
|
|
2015-03-19 19:22:56 +08:00
|
|
|
test("Visit Badge Pages", () => {
|
2014-08-01 06:44:32 +08:00
|
|
|
visit("/badges");
|
2015-03-19 19:22:56 +08:00
|
|
|
andThen(() => {
|
2014-08-01 06:44:32 +08:00
|
|
|
ok(exists('.badges-listing tr'), "has a list of badges");
|
|
|
|
});
|
|
|
|
|
|
|
|
visit("/badges/9/autobiographer");
|
2015-03-19 19:22:56 +08:00
|
|
|
andThen(() => {
|
2015-11-05 18:21:52 +08:00
|
|
|
ok(exists('.badges-listing div'), "has the badge in the listing");
|
2014-08-01 06:44:32 +08:00
|
|
|
ok(exists('.badge-user'), "has the list of users with that badge");
|
|
|
|
});
|
|
|
|
});
|