From 146fd30ab55e7104c5f401dc8d736d1b0cafbf65 Mon Sep 17 00:00:00 2001 From: jumagura Date: Fri, 30 Dec 2022 08:49:38 -0400 Subject: [PATCH] DEV: Check if all tabs are displayed according to the subscription plan --- .../acceptance/admin-wizards-business-subscription-test.js | 7 +++++++ .../acceptance/admin-wizards-standard-subscription-test.js | 7 +++++++ .../acceptance/admin-wizards-unsuscribed-test.js | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/test/javascripts/acceptance/admin-wizards-business-subscription-test.js b/test/javascripts/acceptance/admin-wizards-business-subscription-test.js index 8827e19b..1497a123 100644 --- a/test/javascripts/acceptance/admin-wizards-business-subscription-test.js +++ b/test/javascripts/acceptance/admin-wizards-business-subscription-test.js @@ -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) => { await visit("/admin/wizards/wizard"); await click('button:contains("Create Wizard")'); diff --git a/test/javascripts/acceptance/admin-wizards-standard-subscription-test.js b/test/javascripts/acceptance/admin-wizards-standard-subscription-test.js index 77b8a1dd..0ca9d153 100644 --- a/test/javascripts/acceptance/admin-wizards-standard-subscription-test.js +++ b/test/javascripts/acceptance/admin-wizards-standard-subscription-test.js @@ -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) => { await visit("/admin/wizards/wizard"); await click('button:contains("Create Wizard")'); diff --git a/test/javascripts/acceptance/admin-wizards-unsuscribed-test.js b/test/javascripts/acceptance/admin-wizards-unsuscribed-test.js index 7c063a22..c16363a0 100644 --- a/test/javascripts/acceptance/admin-wizards-unsuscribed-test.js +++ b/test/javascripts/acceptance/admin-wizards-unsuscribed-test.js @@ -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) => { await visit("/admin/wizards/wizard"); assert.ok(