From dfe308f98da000d8b5c29933bd32e6d26db9e502 Mon Sep 17 00:00:00 2001 From: jacobshandling <61553566+jacobshandling@users.noreply.github.com> Date: Tue, 5 Nov 2024 10:16:08 -0800 Subject: [PATCH] Frontend - fix flakey frontend test (#23408) Passed 5/5 runs of test-js with no flakes - [x] Added/updated tests Co-authored-by: Jacob Shandling --- .../pages/hosts/details/cards/HostSummary/HostSummary.tests.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/pages/hosts/details/cards/HostSummary/HostSummary.tests.tsx b/frontend/pages/hosts/details/cards/HostSummary/HostSummary.tests.tsx index 0f003b653a78..047050ba783b 100644 --- a/frontend/pages/hosts/details/cards/HostSummary/HostSummary.tests.tsx +++ b/frontend/pages/hosts/details/cards/HostSummary/HostSummary.tests.tsx @@ -100,7 +100,7 @@ describe("Host Summary section", () => { ); expect(screen.getByText("Agent")).toBeInTheDocument(); - await user.hover(screen.getByText(new RegExp(orbitVersion, "i"))); + await user.hover(screen.getByText(orbitVersion)); expect( screen.getByText(new RegExp(osqueryVersion, "i"))