Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 02:50:28 +01:00
DEV: Check if all tabs are displayed according to the subscription plan
Dieser Commit ist enthalten in:
Ursprung
e88e83dd80
Commit
146fd30ab5
3 geänderte Dateien mit 21 neuen und 0 gelöschten Zeilen
|
@ -51,6 +51,13 @@ acceptance("Admin | Custom Wizard Business Subscription", function (needs) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test("Displaying all tabs including API", async (assert) => {
|
||||||
|
await visit("/admin/wizards");
|
||||||
|
const list = find(".admin-controls li");
|
||||||
|
const count = list.length;
|
||||||
|
assert.equal(count, 6, "There should be 6 admin tabs");
|
||||||
|
});
|
||||||
|
|
||||||
test("creting a new wizard", async (assert) => {
|
test("creting a new wizard", async (assert) => {
|
||||||
await visit("/admin/wizards/wizard");
|
await visit("/admin/wizards/wizard");
|
||||||
await click('button:contains("Create Wizard")');
|
await click('button:contains("Create Wizard")');
|
||||||
|
|
|
@ -51,6 +51,13 @@ acceptance("Admin | Custom Wizard Standard Subscription", function (needs) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test("Displaying all tabs except API", async (assert) => {
|
||||||
|
await visit("/admin/wizards");
|
||||||
|
const list = find(".admin-controls li");
|
||||||
|
const count = list.length;
|
||||||
|
assert.equal(count, 5, "There should be 5 admin tabs");
|
||||||
|
});
|
||||||
|
|
||||||
test("creting a new wizard", async (assert) => {
|
test("creting a new wizard", async (assert) => {
|
||||||
await visit("/admin/wizards/wizard");
|
await visit("/admin/wizards/wizard");
|
||||||
await click('button:contains("Create Wizard")');
|
await click('button:contains("Create Wizard")');
|
||||||
|
|
|
@ -51,6 +51,13 @@ acceptance("Admin | Custom Wizard Unsuscribed", function (needs) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test("Displaying all tabs except API", async (assert) => {
|
||||||
|
await visit("/admin/wizards");
|
||||||
|
const list = find(".admin-controls li");
|
||||||
|
const count = list.length;
|
||||||
|
assert.equal(count, 5, "There should be 5 admin tabs");
|
||||||
|
});
|
||||||
|
|
||||||
test("viewing content for a selected wizard", async (assert) => {
|
test("viewing content for a selected wizard", async (assert) => {
|
||||||
await visit("/admin/wizards/wizard");
|
await visit("/admin/wizards/wizard");
|
||||||
assert.ok(
|
assert.ok(
|
||||||
|
|
Laden …
In neuem Issue referenzieren