0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-29 12:20:27 +01:00
discourse-custom-wizard/test/javascripts/acceptance/wizard-test.js.es6
Angus McLeod b20b8ce333 WIP 2
2022-02-17 17:08:14 +11:00

30 Zeilen
739 B
JavaScript

import { click, currentRouteName, fillIn, visit } from "@ember/test-helpers";
import { module, test } from "qunit";
import { run } from "@ember/runloop";
import startApp from "../helpers/start-app";
console.log("STARTING TEST");
let wizard;
window.onerror = function (msg, url, lineNo, columnNo, error) {
console.log(error);
return false
}
module("Acceptance: Custom Wizard", {
beforeEach() {
console.log("BEFORE EACH")
wizard = startApp();
},
afterEach() {
run(wizard, "destroy");
},
});
function exists(selector) {
return document.querySelector(selector) !== null;
}
test("Wizard starts", async function (assert) {
console.log("TEST")
await visit("/w/wizard");
assert.ok(exists(".wizard-column"));
});