mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
the PR is sponsored by vscode's regex support in find-and-replace 😉
25 lines
781 B
JavaScript
25 lines
781 B
JavaScript
import { visit } from "@ember/test-helpers";
|
|
import { test } from "qunit";
|
|
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
|
|
|
acceptance("Bootstrap Mode Notice", function (needs) {
|
|
needs.user({ admin: true });
|
|
needs.site({ wizard_required: true });
|
|
needs.settings({
|
|
bootstrap_mode_enabled: true,
|
|
bootstrap_mode_min_users: 50,
|
|
});
|
|
|
|
test("is displayed if bootstrap mode is enabled", async function (assert) {
|
|
this.siteSettings.bootstrap_mode_enabled = true;
|
|
await visit("/");
|
|
assert.dom(".bootstrap-mode").exists();
|
|
});
|
|
|
|
test("is hidden if bootstrap mode is disabled", async function (assert) {
|
|
this.siteSettings.bootstrap_mode_enabled = false;
|
|
await visit("/");
|
|
assert.dom(".bootstrap-mode").doesNotExist();
|
|
});
|
|
});
|