diff --git a/client/src/components/Dataset/DatasetStorage/DatasetStorage.test.js b/client/src/components/Dataset/DatasetStorage/DatasetStorage.test.js index 6f90095a327a..f8218abbe934 100644 --- a/client/src/components/Dataset/DatasetStorage/DatasetStorage.test.js +++ b/client/src/components/Dataset/DatasetStorage/DatasetStorage.test.js @@ -40,8 +40,8 @@ describe("DatasetStorage.vue", () => { it("test loading...", async () => { mount(); await wrapper.vm.$nextTick(); - expect(wrapper.findAll("loading-span-stub").length).toBe(1); - expect(wrapper.findAll("describe-object-store-stub").length).toBe(0); + expect(wrapper.findAll("loadingspan-stub").length).toBe(1); + expect(wrapper.findAll("describeobjectstore-stub").length).toBe(0); }); it("test error rendering...", async () => { @@ -52,13 +52,13 @@ describe("DatasetStorage.vue", () => { await flushPromises(); expect(wrapper.findAll(".error").length).toBe(1); expect(wrapper.findAll(".error").at(0).text()).toBe(TEST_ERROR_MESSAGE); - expect(wrapper.findAll("loading-span-stub").length).toBe(0); + expect(wrapper.findAll("loadingspan-stub").length).toBe(0); }); it("test dataset storage with object store without id", async () => { await mountWithResponse(TEST_STORAGE_API_RESPONSE_WITHOUT_ID); - expect(wrapper.findAll("loading-span-stub").length).toBe(0); - expect(wrapper.findAll("describe-object-store-stub").length).toBe(1); + expect(wrapper.findAll("loadingspan-stub").length).toBe(0); + expect(wrapper.findAll("describeobjectstore-stub").length).toBe(1); expect(wrapper.vm.storageInfo.private).toEqual(false); }); diff --git a/client/src/components/HistoryExport/ToLink.test.js b/client/src/components/HistoryExport/ToLink.test.js index 63052b16b298..05257a9a1dd2 100644 --- a/client/src/components/HistoryExport/ToLink.test.js +++ b/client/src/components/HistoryExport/ToLink.test.js @@ -27,7 +27,8 @@ describe("ToLink.vue", () => { localVue, }); await wrapper.vm.$nextTick(); - expect(wrapper.find("loading-span-stub").exists()).toBeTruthy(); + console.debug(wrapper.html()); + expect(wrapper.find("loadingspan-stub").exists()).toBeTruthy(); await flushPromises(); } @@ -38,7 +39,7 @@ describe("ToLink.vue", () => { it("should display a link if no exports ever generated", async () => { await mountWithInitialExports([]); expect(wrapper.find(".export-link")).toBeTruthy(); - expect(wrapper.find("loading-span-stub").exists()).toBeFalsy(); // loading span gone + expect(wrapper.find("loadingspan-stub").exists()).toBeFalsy(); // loading span gone }); it("should start polling if latest export is preparing", async () => { @@ -56,7 +57,7 @@ describe("ToLink.vue", () => { ]); expect(then).toBeTruthy(); expect(wrapper.vm.waitingOnJob).toBeTruthy(); - expect(wrapper.find("loading-span-stub").exists()).toBeTruthy(); + expect(wrapper.find("loadingspan-stub").exists()).toBeTruthy(); }); afterEach(() => { diff --git a/client/src/components/Toolshed/InstalledList/Details.test.js b/client/src/components/Toolshed/InstalledList/Details.test.js index 1d573fa88ab5..ade6e7612593 100644 --- a/client/src/components/Toolshed/InstalledList/Details.test.js +++ b/client/src/components/Toolshed/InstalledList/Details.test.js @@ -33,11 +33,11 @@ describe("Details", () => { }, localVue, }); - expect(wrapper.findAll("loading-span-stub").length).toBe(1); - expect(wrapper.find("loading-span-stub").attributes("message")).toBe("Loading installed repository details"); + expect(wrapper.findAll("loadingspan-stub").length).toBe(1); + expect(wrapper.find("loadingspan-stub").attributes("message")).toBe("Loading installed repository details"); expect(wrapper.findAll("repositorydetails-stub").length).toBe(0); await localVue.nextTick(); - expect(wrapper.findAll("loading-span-stub").length).toBe(0); + expect(wrapper.findAll("loadingspan-stub").length).toBe(0); expect(wrapper.findAll(".alert").length).toBe(0); expect(wrapper.findAll("repositorydetails-stub").length).toBe(1); });