mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
fix jests
This commit is contained in:
@@ -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: ---------
|
||||
|
||||
@@ -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" });
|
||||
};
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user