-
+
+
+
Error in filter:
@@ -108,26 +475,26 @@
-
-
diff --git a/client/src/components/History/HistoryView.test.js b/client/src/components/History/HistoryView.test.js
index 7a0ef49a8fe5..37fa9c79d495 100644
--- a/client/src/components/History/HistoryView.test.js
+++ b/client/src/components/History/HistoryView.test.js
@@ -8,6 +8,7 @@ import { getHistoryByIdFromServer, setCurrentHistoryOnServer } from "stores/serv
import { useUserStore } from "stores/userStore";
import { getLocalVue } from "tests/jest/helpers";
+import ContentItem from "./Content/ContentItem";
import HistoryView from "./HistoryView";
const localVue = getLocalVue();
@@ -65,10 +66,6 @@ async function createWrapper(localVue, currentUserId, history) {
const wrapper = mount(HistoryView, {
propsData: { id: history.id },
localVue,
- stubs: {
- icon: { template: "" },
- ContentItem: true,
- },
provide: {
store: {
dispatch: jest.fn,
@@ -121,12 +118,12 @@ describe("History center panel View", () => {
expectCorrectLayout(wrapper);
// make sure all history items show up
- const historyItems = wrapper.findAll("contentitem-stub");
+ const historyItems = wrapper.findAllComponents(ContentItem);
expect(historyItems.length).toBe(10);
for (let i = 0; i < historyItems.length; i++) {
const hid = historyItems.length - i;
- expect(historyItems.at(i).attributes("id")).toBe(`${hid}`);
- expect(historyItems.at(i).attributes("name")).toBe(`Dataset ${hid}`);
+ expect(historyItems.at(i).props("id")).toBe(hid);
+ expect(historyItems.at(i).props("name")).toBe(`Dataset ${hid}`);
}
});
diff --git a/client/src/components/History/HistoryView.vue b/client/src/components/History/HistoryView.vue
index f03c02e718d8..a6dbee74fd1c 100644
--- a/client/src/components/History/HistoryView.vue
+++ b/client/src/components/History/HistoryView.vue
@@ -3,6 +3,7 @@
{{ historyStateInfoMessage }}
+
Switch to this history
+
+
+
diff --git a/client/src/stores/historyItemsStore.ts b/client/src/stores/historyItemsStore.ts
index e629be45437c..c996713c9cea 100644
--- a/client/src/stores/historyItemsStore.ts
+++ b/client/src/stores/historyItemsStore.ts
@@ -14,7 +14,7 @@ import { mergeArray } from "@/store/historyStore/model/utilities";
import { LastQueue } from "@/utils/lastQueue";
import { urlData } from "@/utils/url";
-type HistoryItem = DatasetSummary | HDCASummary;
+export type HistoryItem = DatasetSummary | HDCASummary;
const limit = 100;