diff --git a/client/src/app/monitor.js b/client/src/app/monitor.js index 3de7d0dfd212..81b39097c72f 100644 --- a/client/src/app/monitor.js +++ b/client/src/app/monitor.js @@ -27,7 +27,9 @@ if (!window.Galaxy) { }, }); } else { - console.debug("Skipping, window.Galaxy already exists.", serverPath()); + if (process.env.NODE_ENV != "test") { + console.debug("Skipping, window.Galaxy already exists.", serverPath()); + } } export default window.Galaxy; diff --git a/client/src/components/Common/FilterMenu.test.ts b/client/src/components/Common/FilterMenu.test.ts index b9ba3db65b3b..b0c2093a395a 100644 --- a/client/src/components/Common/FilterMenu.test.ts +++ b/client/src/components/Common/FilterMenu.test.ts @@ -2,6 +2,7 @@ import { createTestingPinia } from "@pinia/testing"; import { getLocalVue } from "@tests/jest/helpers"; import { mount, type Wrapper } from "@vue/test-utils"; +import { useServerMock } from "@/api/client/__mocks__"; import { HistoryFilters } from "@/components/History/HistoryFilters"; import { setupSelectableMock } from "@/components/ObjectStore/mockServices"; import { WorkflowFilters } from "@/components/Workflow/List/WorkflowFilters"; @@ -9,6 +10,8 @@ import Filtering, { compare, contains, equals, toBool, toDate } from "@/utils/fi import FilterMenu from "./FilterMenu.vue"; +const { server, http } = useServerMock(); + setupSelectableMock(); const localVue = getLocalVue(); @@ -72,6 +75,22 @@ const TestFilters = new Filtering(validTestFilters, undefined); describe("FilterMenu", () => { let wrapper: Wrapper; + beforeEach(() => { + server.use( + http.get("/api/users/{user_id}/usage", ({ response }) => { + return response(200).json([ + { + quota: null, + quota_bytes: null, + quota_percent: null, + quota_source_label: null, + total_disk_usage: 4, + }, + ]); + }) + ); + }); + function setUpWrapper(name: string, placeholder: string, filterClass: Filtering) { wrapper = mount(FilterMenu as object, { propsData: { diff --git a/client/src/components/Common/RDMDestinationSelector.test.ts b/client/src/components/Common/RDMDestinationSelector.test.ts index 299e6a6498b0..2dca8e9c758b 100644 --- a/client/src/components/Common/RDMDestinationSelector.test.ts +++ b/client/src/components/Common/RDMDestinationSelector.test.ts @@ -70,8 +70,6 @@ describe("RDMDestinationSelector", () => { const emitted = wrapper.emitted("onRecordSelected"); - console.log("EMITTED", emitted); - expect(emitted).toBeTruthy(); expect(emitted?.at(0)[0]).toEqual(FAKE_ENTRY.uri); }); diff --git a/client/src/components/ConfigTemplates/InstanceForm.test.ts b/client/src/components/ConfigTemplates/InstanceForm.test.ts index f11499ae445c..72b7578cf125 100644 --- a/client/src/components/ConfigTemplates/InstanceForm.test.ts +++ b/client/src/components/ConfigTemplates/InstanceForm.test.ts @@ -17,6 +17,8 @@ describe("InstanceForm", () => { title: "MY FORM", inputs: null, submitTitle: SUBMIT_TITLE, + busy: false, + loadingMessage: "loading plugin instance", }, localVue, }); @@ -31,6 +33,8 @@ describe("InstanceForm", () => { title: "MY FORM", inputs: inputs, submitTitle: SUBMIT_TITLE, + busy: false, + loadingMessage: "loading plugin instance", }, localVue, }); diff --git a/client/src/components/ConfigTemplates/VaultSecret.vue b/client/src/components/ConfigTemplates/VaultSecret.vue index fe231af18417..4c6140ddbbb9 100644 --- a/client/src/components/ConfigTemplates/VaultSecret.vue +++ b/client/src/components/ConfigTemplates/VaultSecret.vue @@ -1,9 +1,14 @@