We used many global functions to handle tests when they should be imported like other libraries in our application. This also gets us closer to the way Ember CLI prefers our tests to be laid out.
11 lines
308 B
JavaScript
11 lines
308 B
JavaScript
import { test } from "qunit";
|
|
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
|
|
|
acceptance("Admin - Users Badges", { loggedIn: true });
|
|
|
|
test("lists badges", async (assert) => {
|
|
await visit("/admin/users/1/eviltrout/badges");
|
|
|
|
assert.ok(exists(`span[data-badge-name="Badge 8"]`));
|
|
});
|