diff --git a/src/components/PacksTable/PackTable.test.tsx b/src/components/PacksTable/PackTable.test.tsx index 7dfb5e1e85..f8743b6680 100644 --- a/src/components/PacksTable/PackTable.test.tsx +++ b/src/components/PacksTable/PackTable.test.tsx @@ -70,7 +70,7 @@ describe("FilteredTable Tests", () => { // Fire the event to change the search textbox fireEvent.change(screen.getByRole("textbox"), { target: { value: "Amazon" } }); - await new Promise((resolve) => setTimeout(resolve, 300)); + await new Promise((resolve) => setTimeout(resolve, 800)); // Now run the expectations expect(screen.getByText("Amazon EKS optimized Linux")).toBeInTheDocument(); diff --git a/src/components/PacksTable/PacksTable.tsx b/src/components/PacksTable/PacksTable.tsx index a78783f1ba..b02e73c151 100644 --- a/src/components/PacksTable/PacksTable.tsx +++ b/src/components/PacksTable/PacksTable.tsx @@ -175,7 +175,7 @@ const FilteredTable: React.FC = () => { }, []); const filteredPacks = searchValue - ? deprecatedPacks.filter((pack) => pack.name.toLowerCase().includes(searchValue.toLowerCase())) + ? deprecatedPacks.filter((pack) => pack.displayName.toLowerCase().includes(searchValue.toLowerCase())) : deprecatedPacks; return (