diff --git a/test/javascripts/acceptance/admin-submissions-test.js b/test/javascripts/acceptance/admin-submissions-test.js index cd616634..767e190c 100644 --- a/test/javascripts/acceptance/admin-submissions-test.js +++ b/test/javascripts/acceptance/admin-submissions-test.js @@ -34,6 +34,9 @@ acceptance("Admin | Submissions", function (needs) { server.get("/admin/wizards/wizard", () => { return helper.response(getWizard); }); + server.get("/admin/plugins/subscription-client/suppliers", () => { + return helper.response(getSuppliers); + }); }); test("View submissions fields tab and content", async (assert) => { await visit("/admin/wizards/submissions"); diff --git a/test/javascripts/helpers/admin-wizard.js b/test/javascripts/helpers/admin-wizard.js index 5582384f..7585b956 100644 --- a/test/javascripts/helpers/admin-wizard.js +++ b/test/javascripts/helpers/admin-wizard.js @@ -914,6 +914,15 @@ const putNewApi = { log: [], }, }; +const getSuppliers = { + "suppliers": [ + { "id": 1, + "name": "Pavilion", + "authorized": false, + "authorized_at": null, + "user": null } + ] +}; export { getWizard, getUnsubscribedAdminWizards, @@ -928,4 +937,5 @@ export { putNewApi, getAnotherWizardSubmission, getUniqueWizard, + getSuppliers, };