Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions shortcuts/base/base_shortcuts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ func TestShortcutsCatalog(t *testing.T) {
"+form-create", "+form-delete", "+form-list", "+form-update", "+form-get", "+form-detail",
"+form-questions-create", "+form-questions-delete", "+form-questions-update", "+form-questions-list",
"+form-submit", "+form-share-get", "+form-share-update",
"+form-submission-settings-get", "+form-submission-settings-update",
"+form-notifications-get", "+form-notifications-update",
"+form-submit-actions-get", "+form-submit-actions-update",
"+form-lottery-get", "+form-lottery-action",
"+dashboard-list", "+dashboard-get", "+dashboard-share-get", "+dashboard-share-update", "+dashboard-create", "+dashboard-update", "+dashboard-delete", "+dashboard-arrange",
"+dashboard-block-list", "+dashboard-block-get", "+dashboard-block-get-data", "+dashboard-block-create", "+dashboard-block-update", "+dashboard-block-delete",
"+workspace-create", "+workspace-entity-list", "+workspace-move-in",
Expand Down Expand Up @@ -225,6 +229,46 @@ func TestShareManagementShortcutScopes(t *testing.T) {
scopes: BaseFormShareUpdate.Scopes,
want: []string{"base:form:update"},
},
{
name: "form submission settings get requires update scope",
scopes: BaseFormSubmissionSettingsGet.Scopes,
want: []string{"base:form:update"},
},
{
name: "form submission settings update requires update scope",
scopes: BaseFormSubmissionSettingsUpdate.Scopes,
want: []string{"base:form:update"},
},
{
name: "form notifications get requires update scope",
scopes: BaseFormNotificationsGet.Scopes,
want: []string{"base:form:update"},
},
{
name: "form notifications update requires update scope",
scopes: BaseFormNotificationsUpdate.Scopes,
want: []string{"base:form:update"},
},
{
name: "form submit actions get requires update scope",
scopes: BaseFormSubmitActionsGet.Scopes,
want: []string{"base:form:update"},
},
{
name: "form submit actions update requires update scope",
scopes: BaseFormSubmitActionsUpdate.Scopes,
want: []string{"base:form:update"},
},
{
name: "form lottery get requires update scope",
scopes: BaseFormLotteryGet.Scopes,
want: []string{"base:form:update"},
},
{
name: "form lottery action requires update scope",
scopes: BaseFormLotteryAction.Scopes,
want: []string{"base:form:update"},
},
}

for _, tt := range tests {
Expand Down
Loading
Loading