discourse/lib/generators/plugin/templates/acceptance-test.js.es6.erb
Robin Ward 23f24bfb51 REFACTOR: Move javascript tests inside discourse app
This is where they should be as far as ember is concerned. Note this is
a huge commit and we should be really careful everything continues to
work properly.
2020-10-02 11:29:36 -04:00

10 lines
277 B
Plaintext

import { acceptance } from "discourse/tests/helpers/qunit-helpers";
acceptance("<%= name %>", { loggedIn: true });
test("<%= name %> works", async assert => {
await visit("/admin/plugins/<%= dasherized_name %>");
assert.ok(false, "it shows the <%= name %> button");
});