File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
frontend/pages/hosts/details/cards/HostSummary Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ describe("Host Summary section", () => {
50
50
const osqueryVersion = summaryData . osquery_version as string ;
51
51
const fleetdVersion = summaryData . fleet_desktop_version as string ;
52
52
53
- const { user } = render (
53
+ render (
54
54
< HostSummary
55
55
summaryData = { summaryData }
56
56
showRefetchSpinner = { false }
@@ -89,7 +89,7 @@ describe("Host Summary section", () => {
89
89
const orbitVersion = summaryData . orbit_version as string ;
90
90
const osqueryVersion = summaryData . osquery_version as string ;
91
91
92
- const { user } = render (
92
+ render (
93
93
< HostSummary
94
94
summaryData = { summaryData }
95
95
showRefetchSpinner = { false }
@@ -99,7 +99,10 @@ describe("Host Summary section", () => {
99
99
) ;
100
100
101
101
expect ( screen . getByText ( "Agent" ) ) . toBeInTheDocument ( ) ;
102
- await user . hover ( screen . getByText ( orbitVersion ) ) ;
102
+
103
+ await fireEvent . mouseEnter (
104
+ screen . getByText ( new RegExp ( orbitVersion , "i" ) )
105
+ ) ;
103
106
104
107
expect (
105
108
screen . getByText ( new RegExp ( osqueryVersion , "i" ) )
You can’t perform that action at this time.
0 commit comments