Skip to content

Commit

Permalink
change pack table test time out and change search field to display name
Browse files Browse the repository at this point in the history
  • Loading branch information
lennessyy committed Jan 10, 2024
1 parent e8d327c commit b508939
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/PacksTable/PackTable.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/components/PacksTable/PacksTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit b508939

Please sign in to comment.