mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
https://meta.discourse.org/t/lets-talk-suggestion-for-improvement-invite-feature/284655/11?u=yigit
20 lines
622 B
JavaScript
20 lines
622 B
JavaScript
import { visit } from "@ember/test-helpers";
|
|
import { test } from "qunit";
|
|
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
|
|
|
acceptance("User invites", function (needs) {
|
|
needs.user();
|
|
|
|
test("hides delete button based on can_delete_invite", async function (assert) {
|
|
await visit("/u/eviltrout/invited");
|
|
|
|
assert.dom("table.user-invite-list tbody tr").exists({ count: 3 });
|
|
assert
|
|
.dom("table.user-invite-list tbody tr:nth-child(1) button.cancel")
|
|
.exists();
|
|
assert
|
|
.dom("table.user-invite-list tbody tr:nth-child(2) button.cancel")
|
|
.doesNotExist();
|
|
});
|
|
});
|