2015-04-06 14:14:00 -04:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
|
|
|
|
acceptance("Badges");
|
2014-07-31 18:44:32 -04:00
|
|
|
|
2015-03-19 07:22:56 -04:00
|
|
|
test("Visit Badge Pages", () => {
|
2014-07-31 18:44:32 -04:00
|
|
|
visit("/badges");
|
2015-03-19 07:22:56 -04:00
|
|
|
andThen(() => {
|
2016-11-10 13:33:31 -05:00
|
|
|
ok($('body.badges-page').length, "has body class");
|
2016-03-25 15:32:48 -04:00
|
|
|
ok(exists('.badge-groups .badge-card'), "has a list of badges");
|
2014-07-31 18:44:32 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
visit("/badges/9/autobiographer");
|
2015-03-19 07:22:56 -04:00
|
|
|
andThen(() => {
|
2016-03-25 15:32:48 -04:00
|
|
|
ok(exists('.badge-card'), "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");
|
2016-07-28 15:53:36 -04:00
|
|
|
ok(!exists('.badge-card:eq(0) script'));
|
2014-07-31 18:44:32 -04:00
|
|
|
});
|
|
|
|
});
|