diff --git a/client/src/components/Common/FilterMenu.test.js b/client/src/components/Common/FilterMenu.test.js index 254efe75bedc..5f7598ece3fd 100644 --- a/client/src/components/Common/FilterMenu.test.js +++ b/client/src/components/Common/FilterMenu.test.js @@ -201,7 +201,7 @@ describe("FilterMenu", () => { // only add name filter in the advanced menu let filterName = wrapper.find("[placeholder='any name']"); if (filterName.vm && filterName.props().type == "text") { - filterName.setValue("sample name"); + await filterName.setValue("sample name"); } // -------- Test keyup.enter key: --------- diff --git a/client/src/components/History/HistoryPublishedList.vue b/client/src/components/History/HistoryPublishedList.vue index f176407cb7bc..cca94b113dd7 100644 --- a/client/src/components/History/HistoryPublishedList.vue +++ b/client/src/components/History/HistoryPublishedList.vue @@ -81,15 +81,6 @@ const onTagsUpdate = (newTags, row) => { updateTags(row.item.id, "History", row.item.tags); }; -const onToggle = () => { - showAdvanced.value = !showAdvanced.value; -}; - -const onSearch = () => { - onToggle(); - updateFilter(filters.getFilterText(filterSettings.value)); -}; - const scrollToTop = () => { scrollableDiv.value.scrollTo({ top: 0, behavior: "smooth" }); }; diff --git a/client/src/components/Panels/Common/ToolSearch.test.js b/client/src/components/Panels/Common/ToolSearch.test.js index b0fe88c49b15..57373e961a05 100644 --- a/client/src/components/Panels/Common/ToolSearch.test.js +++ b/client/src/components/Panels/Common/ToolSearch.test.js @@ -68,7 +68,7 @@ describe("ToolSearch", () => { // Test: we route to the list with filters const mockMethod = jest.fn(); $router.push = mockMethod; - wrapper.find("[data-description='apply filters']").trigger("click"); + await wrapper.find("[data-description='apply filters']").trigger("click"); const filterSettings = { name: "name-filter", section: "section-filter",