@@ -55,10 +55,10 @@ export const Outdated: Story = {
5555 } ,
5656
5757 play : async ( { step } ) => {
58- await step ( "activate hover trigger" , async ( ) => {
59- await userEvent . hover ( screen . getByTestId ( "info-notifications" ) ) ;
58+ await step ( "activate click trigger" , async ( ) => {
59+ await userEvent . click ( screen . getByTestId ( "info-notifications" ) ) ;
6060 await waitFor ( ( ) =>
61- expect ( screen . getByRole ( "tooltip " ) ) . toHaveTextContent (
61+ expect ( screen . getByRole ( "dialog " ) ) . toHaveTextContent (
6262 MockTemplateVersion . message ,
6363 ) ,
6464 ) ;
@@ -73,10 +73,10 @@ export const OutdatedWithMarkdownMessage: Story = {
7373 } ,
7474
7575 play : async ( { step } ) => {
76- await step ( "activate hover trigger" , async ( ) => {
77- await userEvent . hover ( screen . getByTestId ( "info-notifications" ) ) ;
76+ await step ( "activate click trigger" , async ( ) => {
77+ await userEvent . click ( screen . getByTestId ( "info-notifications" ) ) ;
7878 await waitFor ( ( ) =>
79- expect ( screen . getByRole ( "tooltip " ) ) . toHaveTextContent (
79+ expect ( screen . getByRole ( "dialog " ) ) . toHaveTextContent (
8080 / a n u p d a t e i s a v a i l a b l e / i,
8181 ) ,
8282 ) ;
@@ -104,10 +104,10 @@ export const RequiresManualUpdate: Story = {
104104 } ,
105105
106106 play : async ( { step } ) => {
107- await step ( "activate hover trigger" , async ( ) => {
108- await userEvent . hover ( screen . getByTestId ( "warning-notifications" ) ) ;
107+ await step ( "activate click trigger" , async ( ) => {
108+ await userEvent . click ( screen . getByTestId ( "warning-notifications" ) ) ;
109109 await waitFor ( ( ) =>
110- expect ( screen . getByRole ( "tooltip " ) ) . toHaveTextContent (
110+ expect ( screen . getByRole ( "dialog " ) ) . toHaveTextContent (
111111 / u n a b l e t o a u t o m a t i c a l l y u p d a t e / i,
112112 ) ,
113113 ) ;
@@ -153,9 +153,9 @@ export const StartupScriptFailed: Story = {
153153
154154 play : async ( { step } ) => {
155155 await step ( "shows startup script failure message" , async ( ) => {
156- await userEvent . hover ( screen . getByTestId ( "warning-notifications" ) ) ;
156+ await userEvent . click ( screen . getByTestId ( "warning-notifications" ) ) ;
157157 await waitFor ( ( ) =>
158- expect ( screen . getByRole ( "tooltip " ) ) . toHaveTextContent (
158+ expect ( screen . getByRole ( "dialog " ) ) . toHaveTextContent (
159159 / a s t a r t u p s c r i p t h a s f a i l e d / i,
160160 ) ,
161161 ) ;
@@ -178,10 +178,10 @@ export const AgentDisconnected: Story = {
178178 } ,
179179
180180 play : async ( { step } ) => {
181- await step ( "activate hover trigger" , async ( ) => {
182- await userEvent . hover ( screen . getByTestId ( "warning-notifications" ) ) ;
181+ await step ( "activate click trigger" , async ( ) => {
182+ await userEvent . click ( screen . getByTestId ( "warning-notifications" ) ) ;
183183 await waitFor ( ( ) =>
184- expect ( screen . getByRole ( "tooltip " ) ) . toHaveTextContent (
184+ expect ( screen . getByRole ( "dialog " ) ) . toHaveTextContent (
185185 / o n e o r m o r e w o r k s p a c e a g e n t s n e e d a t t e n t i o n / i,
186186 ) ,
187187 ) ;
@@ -199,10 +199,10 @@ export const AgentTimeout: Story = {
199199 } ,
200200
201201 play : async ( { step } ) => {
202- await step ( "activate hover trigger" , async ( ) => {
203- await userEvent . hover ( screen . getByTestId ( "warning-notifications" ) ) ;
202+ await step ( "activate click trigger" , async ( ) => {
203+ await userEvent . click ( screen . getByTestId ( "warning-notifications" ) ) ;
204204 await waitFor ( ( ) =>
205- expect ( screen . getByRole ( "tooltip " ) ) . toHaveTextContent (
205+ expect ( screen . getByRole ( "dialog " ) ) . toHaveTextContent (
206206 / o n e o r m o r e w o r k s p a c e a g e n t s n e e d a t t e n t i o n / i,
207207 ) ,
208208 ) ;
@@ -233,10 +233,10 @@ export const Dormant: Story = {
233233 } ,
234234
235235 play : async ( { step } ) => {
236- await step ( "activate hover trigger" , async ( ) => {
237- await userEvent . hover ( screen . getByTestId ( "warning-notifications" ) ) ;
236+ await step ( "activate click trigger" , async ( ) => {
237+ await userEvent . click ( screen . getByTestId ( "warning-notifications" ) ) ;
238238 await waitFor ( ( ) =>
239- expect ( screen . getByRole ( "tooltip " ) ) . toHaveTextContent (
239+ expect ( screen . getByRole ( "dialog " ) ) . toHaveTextContent (
240240 / w o r k s p a c e i s d o r m a n t / i,
241241 ) ,
242242 ) ;
@@ -273,10 +273,10 @@ export const PendingInQueue: Story = {
273273 } ,
274274
275275 play : async ( { step } ) => {
276- await step ( "activate hover trigger" , async ( ) => {
277- await userEvent . hover ( await screen . findByTestId ( "info-notifications" ) ) ;
276+ await step ( "activate click trigger" , async ( ) => {
277+ await userEvent . click ( await screen . findByTestId ( "info-notifications" ) ) ;
278278 await waitFor ( ( ) =>
279- expect ( screen . getByRole ( "tooltip " ) ) . toHaveTextContent (
279+ expect ( screen . getByRole ( "dialog " ) ) . toHaveTextContent (
280280 / b u i l d i s p e n d i n g / i,
281281 ) ,
282282 ) ;
@@ -295,10 +295,10 @@ export const TemplateDeprecated: Story = {
295295 } ,
296296
297297 play : async ( { step } ) => {
298- await step ( "activate hover trigger" , async ( ) => {
299- await userEvent . hover ( screen . getByTestId ( "warning-notifications" ) ) ;
298+ await step ( "activate click trigger" , async ( ) => {
299+ await userEvent . click ( screen . getByTestId ( "warning-notifications" ) ) ;
300300 await waitFor ( ( ) =>
301- expect ( screen . getByRole ( "tooltip " ) ) . toHaveTextContent (
301+ expect ( screen . getByRole ( "dialog " ) ) . toHaveTextContent (
302302 / d e p r e c a t e d t e m p l a t e / i,
303303 ) ,
304304 ) ;
0 commit comments