From 4750829e1a62f9ea65b10de3fd935cadd9c71e15 Mon Sep 17 00:00:00 2001 From: Nick Slowinski Date: Tue, 3 Oct 2023 19:35:16 +0200 Subject: [PATCH] testing --- lib/custom_wizard/subscription.rb | 26 ++++++++--------- test/javascripts/helpers/admin-wizard.js | 37 +++++++++--------------- 2 files changed, 26 insertions(+), 37 deletions(-) diff --git a/lib/custom_wizard/subscription.rb b/lib/custom_wizard/subscription.rb index af5b3fbc..53c06404 100644 --- a/lib/custom_wizard/subscription.rb +++ b/lib/custom_wizard/subscription.rb @@ -10,19 +10,19 @@ class CustomWizard::Subscription { wizard: { required: { - none: [], + none: ['*'], standard: ['*'], business: ['*'], community: ['*'] }, permitted: { - none: [], + none: ['*'], standard: ['*'], business: ['*'], community: ['*', "!#{CustomWizard::Wizard::GUEST_GROUP_ID}"] }, restart_on_revisit: { - none: [], + none: ['*'], standard: ['*'], business: ['*'], community: ['*'] @@ -30,19 +30,19 @@ class CustomWizard::Subscription }, step: { condition: { - none: [], + none: ['*'], standard: ['*'], business: ['*'], community: ['*'] }, required_data: { - none: [], + none: ['*'], standard: ['*'], business: ['*'], community: ['*'] }, permitted_params: { - none: [], + none: ['*'], standard: ['*'], business: ['*'], community: ['*'] @@ -50,19 +50,19 @@ class CustomWizard::Subscription }, field: { condition: { - none: [], + none: ['*'], standard: ['*'], business: ['*'], community: ['*'] }, type: { - none: ['text', 'textarea', 'text_only', 'date', 'time', 'date_time', 'number', 'checkbox', 'dropdown', 'upload'], + none: ['*'], standard: ['*'], business: ['*'], community: ['*'] }, realtime_validations: { - none: [], + none: ['*'], standard: ['*'], business: ['*'], community: ['*'] @@ -70,7 +70,7 @@ class CustomWizard::Subscription }, action: { type: { - none: ['create_topic', 'update_profile', 'open_composer', 'route_to'], + none: ['*'], standard: ['create_topic', 'update_profile', 'open_composer', 'route_to', 'send_message', 'watch_categories', 'watch_tags', 'add_to_group'], business: ['*'], community: ['*'] @@ -78,13 +78,13 @@ class CustomWizard::Subscription }, custom_field: { klass: { - none: ['topic', 'post'], + none: ['*'], standard: ['topic', 'post'], business: ['*'], community: ['*'] }, type: { - none: ['string', 'boolean', 'integer'], + none: ['*'], standard: ['string', 'boolean', 'integer'], business: ['*'], community: ['*'] @@ -92,7 +92,7 @@ class CustomWizard::Subscription }, api: { all: { - none: [], + none: ['*'], standard: [], business: ['*'], community: ['*'] diff --git a/test/javascripts/helpers/admin-wizard.js b/test/javascripts/helpers/admin-wizard.js index 6c5dd84c..862a47c9 100644 --- a/test/javascripts/helpers/admin-wizard.js +++ b/test/javascripts/helpers/admin-wizard.js @@ -121,19 +121,19 @@ const getUnsubscribedAdminWizards = { subscription_attributes: { wizard: { required: { - none: [], + none: ['*'], standard: ["*"], business: ["*"], community: ["*"], }, permitted: { - none: [], + none: ['*'], standard: ["*"], business: ["*"], community: ["*"], }, restart_on_revisit: { - none: [], + none: ['*'], standard: ["*"], business: ["*"], community: ["*"], @@ -141,19 +141,19 @@ const getUnsubscribedAdminWizards = { }, step: { condition: { - none: [], + none: ['*'], standard: ["*"], business: ["*"], community: ["*"], }, required_data: { - none: [], + none: ['*'], standard: ["*"], business: ["*"], community: ["*"], }, permitted_params: { - none: [], + none: ['*'], standard: ["*"], business: ["*"], community: ["*"], @@ -161,30 +161,19 @@ const getUnsubscribedAdminWizards = { }, field: { condition: { - none: [], + none: ['*'], standard: ["*"], business: ["*"], community: ["*"], }, type: { - none: [ - "text", - "textarea", - "text_only", - "date", - "time", - "date_time", - "number", - "checkbox", - "dropdown", - "upload", - ], + none: ['*'], standard: ["*"], business: ["*"], community: ["*"], }, realtime_validations: { - none: [], + none: ['*'], standard: ["*"], business: ["*"], community: ["*"], @@ -192,7 +181,7 @@ const getUnsubscribedAdminWizards = { }, action: { type: { - none: ["create_topic", "update_profile", "open_composer", "route_to"], + none: ['*'], standard: [ "create_topic", "update_profile", @@ -208,20 +197,20 @@ const getUnsubscribedAdminWizards = { }, custom_field: { klass: { - none: ["topic", "post"], + none: ['*'], standard: ["topic", "post"], business: ["*"], community: ["*"], }, type: { - none: ["string", "boolean", "integer"], + none: ['*'], standard: ["string", "boolean", "integer"], business: ["*"], community: ["*"], }, }, api: { - all: { none: [], standard: [], business: ["*"], community: ["*"] }, + all: { none: ["*"], standard: [], business: ["*"], community: ["*"] }, }, }, subscription_client_installed: false,