Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
Merge branch 'main' into pro-release
Dieser Commit ist enthalten in:
Commit
1175cbab96
2 geänderte Dateien mit 18 neuen und 6 gelöschten Zeilen
|
@ -1,7 +1,9 @@
|
||||||
body.custom-wizard .d-header,
|
body.custom-wizard {
|
||||||
.global-notice,
|
.d-header,
|
||||||
.create-topics-notice,
|
.global-notice,
|
||||||
.top-notices-outlet,
|
.create-topics-notice,
|
||||||
.consent_banner {
|
.top-notices-outlet,
|
||||||
display: none;
|
.consent_banner {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,6 +66,11 @@ acceptance("Wizard | Wizard", function (needs) {
|
||||||
assert.ok(query(".wizard-column"), true);
|
assert.ok(query(".wizard-column"), true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test("Applies the wizard body class", async function (assert) {
|
||||||
|
await visit("/w/wizard");
|
||||||
|
assert.ok($("body.custom-wizard").length);
|
||||||
|
});
|
||||||
|
|
||||||
test("Applies the body background color", async function (assert) {
|
test("Applies the body background color", async function (assert) {
|
||||||
await visit("/w/wizard");
|
await visit("/w/wizard");
|
||||||
assert.ok($("body")[0].style.background);
|
assert.ok($("body")[0].style.background);
|
||||||
|
@ -95,4 +100,9 @@ acceptance("Wizard | Wizard", function (needs) {
|
||||||
assert.ok(exists(".wizard-step-footer .wizard-progress"), true);
|
assert.ok(exists(".wizard-step-footer .wizard-progress"), true);
|
||||||
assert.ok(exists(".wizard-step-footer .wizard-buttons"), true);
|
assert.ok(exists(".wizard-step-footer .wizard-buttons"), true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test("Removes the wizard body class when navigating away", async function (assert) {
|
||||||
|
await visit("/");
|
||||||
|
assert.strictEqual($("body.custom-wizard").length, 0);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Laden …
In neuem Issue referenzieren