From bed31a9f8f025011039f77e5c46cec2172197797 Mon Sep 17 00:00:00 2001 From: guerler Date: Mon, 7 Feb 2022 20:52:05 -0500 Subject: [PATCH] Fix tests for history revision --- .../History/ContentItem/Dataset/DatasetUI.vue | 1 + .../ContentItem/DatasetCollection/DscUI.vue | 1 + .../History/ContentItem/Subdataset.vue | 2 +- .../components/History/ContentOperations.vue | 6 ++++-- .../History/CurrentCollection/Panel.vue | 4 ++-- client/src/components/History/History.vue | 2 +- client/src/components/History/index.js | 4 ---- .../providers/DatasetCollectionProvider.js | 3 +++ .../providers/SingleQueryProvider.js | 9 +++++---- client/src/utils/promise-queue.js | 4 ++-- .../selenium/test_collection_builders.py | 18 +++++------------- .../selenium/test_collection_edit.py | 9 ++++----- .../selenium/test_history_panel_collections.py | 10 ++++------ 13 files changed, 33 insertions(+), 40 deletions(-) diff --git a/client/src/components/History/ContentItem/Dataset/DatasetUI.vue b/client/src/components/History/ContentItem/Dataset/DatasetUI.vue index d485504b441..1b413f099d0 100644 --- a/client/src/components/History/ContentItem/Dataset/DatasetUI.vue +++ b/client/src/components/History/ContentItem/Dataset/DatasetUI.vue @@ -10,6 +10,7 @@ either through the props, and make updates through the events --> class="dataset history-content" :id="typeId" :class="{ expanded, collapsed, selected }" + :data-hid="dataset.hid" :data-state="dataset.state" @keydown.arrow-left.self.stop="$emit('update:expanded', false)" @keydown.arrow-right.self.stop="$emit('update:expanded', true)" diff --git a/client/src/components/History/ContentItem/DatasetCollection/DscUI.vue b/client/src/components/History/ContentItem/DatasetCollection/DscUI.vue index 547b3b8e35c..97e46b62492 100644 --- a/client/src/components/History/ContentItem/DatasetCollection/DscUI.vue +++ b/client/src/components/History/ContentItem/DatasetCollection/DscUI.vue @@ -6,6 +6,7 @@ class="dataset dataset-collection collapsed" :class="{ selected }" :id="typedId" + :data-hid="dsc.hid" :data-state="dsc.state" @keydown.arrow-right.self.stop="$emit('viewCollection')" @keydown.space.self.stop.prevent="$emit('update:selected', !selected)"> diff --git a/client/src/components/History/ContentItem/Subdataset.vue b/client/src/components/History/ContentItem/Subdataset.vue index b1ad64889eb..f43d347a9e9 100644 --- a/client/src/components/History/ContentItem/Subdataset.vue +++ b/client/src/components/History/ContentItem/Subdataset.vue @@ -44,7 +44,7 @@ export default { this.$emit("update:expand", val); }, async loadDetails() { - await getContentDetails(this.item); + const loadedDataset = await getContentDetails(this.item); this.localItem = loadedDataset; }, }, diff --git a/client/src/components/History/ContentOperations.vue b/client/src/components/History/ContentOperations.vue index 326289fe3d9..4fe692ec80d 100644 --- a/client/src/components/History/ContentOperations.vue +++ b/client/src/components/History/ContentOperations.vue @@ -4,6 +4,7 @@