Skip to content

Commit

Permalink
fix jests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Oct 10, 2023
1 parent 6909bf2 commit a771985
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Common/FilterMenu.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: ---------
Expand Down
9 changes: 0 additions & 9 deletions client/src/components/History/HistoryPublishedList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
};
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Panels/Common/ToolSearch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a771985

Please sign in to comment.