Retry: Rename all test files from JS -> ES6

This commit is contained in:
Robin Ward
2020-03-26 12:25:46 -04:00
parent 739430c01e
commit 60df2ade8d
281 changed files with 36 additions and 29 deletions
@@ -0,0 +1,24 @@
import selectKit from "helpers/select-kit-helper";
import { acceptance } from "helpers/qunit-helpers";
acceptance("Badges", { loggedIn: true });
QUnit.test("Visit Badge Pages", async assert => {
await visit("/badges");
assert.ok($("body.badges-page").length, "has body class");
assert.ok(exists(".badge-groups .badge-card"), "has a list of badges");
await visit("/badges/9/autobiographer");
assert.ok(exists(".badge-card"), "has the badge in the listing");
assert.ok(exists(".user-info"), "has the list of users with that badge");
assert.ok(!exists(".badge-card:eq(0) script"));
});
QUnit.test("shows correct badge titles to choose from", async assert => {
const availableBadgeTitles = selectKit(".select-kit");
await visit("/badges/50/custombadge");
await availableBadgeTitles.expand();
assert.ok(availableBadgeTitles.rowByIndex(1).name() === "CustomBadge");
});