From 1254fcfb4eef1628a8814a2e5c77d335d94b67bd Mon Sep 17 00:00:00 2001 From: jumagura Date: Tue, 21 Mar 2023 04:48:46 -0400 Subject: [PATCH] DEV: Add helper for wizard api --- test/javascripts/helpers/admin-wizard.js | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/test/javascripts/helpers/admin-wizard.js b/test/javascripts/helpers/admin-wizard.js index 851197aa..8c0075d3 100644 --- a/test/javascripts/helpers/admin-wizard.js +++ b/test/javascripts/helpers/admin-wizard.js @@ -652,6 +652,37 @@ const getCreatedWizard = { }, ], }; +const getNewApi = { + name: "new_api", + title: "new API", + authorization: { + auth_type: "basic", + auth_url: null, + token_url: null, + client_id: null, + client_secret: null, + authorized: null, + auth_params: [], + access_token: null, + refresh_token: null, + token_expires_at: null, + token_refresh_at: null, + code: null, + username: "some_username", + password: "some_password", + }, + endpoints: [ + { + id: "8371de", + name: "endpoint_name", + method: "POST", + url: "https://test.api.com", + content_type: "application/json", + success_codes: [200, 100], + }, + ], + log: [], +}; export { getWizard, getUnsubscribedAdminWizards, @@ -662,4 +693,5 @@ export { getStandardAdminWizard, getAdminTestingWizard, getCreatedWizard, + getNewApi, };