discourse/plugins/discourse-assign/test/javascripts/acceptance/assign-disabled-test.js
Jarek Radosz 893fcf714b
DEV: Remove plugin names from test titles (#39418)
Those are now automatically included in testem's output.
2026-04-21 19:19:52 +02:00

16 lines
500 B
JavaScript

import { visit } from "@ember/test-helpers";
import { test } from "qunit";
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
acceptance("Assign disabled mobile", function (needs) {
needs.user({ can_assign: true });
needs.mobileView();
needs.settings({
assign_enabled: false,
});
test("Footer dropdown does not contain button", async function (assert) {
await visit("/t/internationalization-localization/280");
assert.dom(".assign").doesNotExist();
});
});