0
0
Fork 1
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:
jumagura 2022-12-30 08:49:38 -04:00
Ursprung e88e83dd80
Commit 146fd30ab5
3 geänderte Dateien mit 21 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -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")');

Datei anzeigen

@ -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")');

Datei anzeigen

@ -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(