File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
webview-ui/src/components/cloud/__tests__ Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -308,8 +308,15 @@ describe("CloudView", () => {
308308 expect ( taskSyncToggle ) . toBeInTheDocument ( )
309309 expect ( taskSyncToggle ) . toHaveAttribute ( "tabindex" , "-1" )
310310
311- // Check that the organization message is displayed
312- expect ( screen . getByText ( "Task sync is managed by your organization" ) ) . toBeInTheDocument ( )
311+ // Check that the lock icon is displayed (indicating organization control)
312+ const lockIcon = screen . getByTestId ( "task-sync-toggle" ) . parentElement ?. querySelector ( ".lucide-lock" )
313+ expect ( lockIcon ) . toBeInTheDocument ( )
314+
315+ // Check that the tooltip trigger is present (which contains the organization message)
316+ const tooltipTrigger = screen
317+ . getByTestId ( "task-sync-toggle" )
318+ . parentElement ?. querySelector ( '[data-slot="tooltip-trigger"]' )
319+ expect ( tooltipTrigger ) . toBeInTheDocument ( )
313320 } )
314321
315322 it ( "should enable task sync toggle for non-organization users" , ( ) => {
You can’t perform that action at this time.
0 commit comments