@@ -1350,7 +1350,7 @@ describe("ChatView - Version Indicator Tests", () => {
13501350describe ( "ChatView - RooCloudCTA Display Tests" , ( ) => {
13511351 beforeEach ( ( ) => vi . clearAllMocks ( ) )
13521352
1353- it ( "does not show RooCloudCTA when user is authenticated to Cloud" , ( ) => {
1353+ it ( "shows RooTips when user is authenticated to Cloud" , ( ) => {
13541354 const { queryByTestId, getByTestId } = renderChatView ( )
13551355
13561356 // Hydrate state with user authenticated to cloud and some task history
@@ -1366,12 +1366,12 @@ describe("ChatView - RooCloudCTA Display Tests", () => {
13661366 clineMessages : [ ] , // No active task
13671367 } )
13681368
1369- // Should not show RooCloudCTA but should show RooTips
1369+ // Should show RooTips and not RooCloudCTA
13701370 expect ( queryByTestId ( "roo-cloud-cta" ) ) . not . toBeInTheDocument ( )
13711371 expect ( getByTestId ( "roo-tips" ) ) . toBeInTheDocument ( )
13721372 } )
13731373
1374- it ( "does not show RooCloudCTA when user has only run 3 tasks in their history" , ( ) => {
1374+ it ( "shows RooTips when user has only run 3 tasks in their history" , ( ) => {
13751375 const { queryByTestId, getByTestId } = renderChatView ( )
13761376
13771377 // Hydrate state with user not authenticated and only 3 tasks in history
@@ -1385,12 +1385,12 @@ describe("ChatView - RooCloudCTA Display Tests", () => {
13851385 clineMessages : [ ] , // No active task
13861386 } )
13871387
1388- // Should not show RooCloudCTA but should show RooTips
1388+ // Should show RooTips and not RooCloudCTA
13891389 expect ( queryByTestId ( "roo-cloud-cta" ) ) . not . toBeInTheDocument ( )
13901390 expect ( getByTestId ( "roo-tips" ) ) . toBeInTheDocument ( )
13911391 } )
13921392
1393- it ( "shows RooCloudCTA when user is not authenticated and has run 4 or more tasks" , async ( ) => {
1393+ it ( "shows RooTips when user is not authenticated and has run 4 or more tasks" , async ( ) => {
13941394 const { getByTestId, queryByTestId } = renderChatView ( )
13951395
13961396 // Hydrate state with user not authenticated and 4+ tasks in history
@@ -1405,14 +1405,14 @@ describe("ChatView - RooCloudCTA Display Tests", () => {
14051405 clineMessages : [ ] , // No active task
14061406 } )
14071407
1408- // Should show RooCloudCTA and not RooTips
1408+ // Should show RooTips and not RooCloudCTA
14091409 await waitFor ( ( ) => {
1410- expect ( getByTestId ( "roo-cloud-cta " ) ) . toBeInTheDocument ( )
1410+ expect ( getByTestId ( "roo-tips " ) ) . toBeInTheDocument ( )
14111411 } )
1412- expect ( queryByTestId ( "roo-tips " ) ) . not . toBeInTheDocument ( )
1412+ expect ( queryByTestId ( "roo-cloud-cta " ) ) . not . toBeInTheDocument ( )
14131413 } )
14141414
1415- it ( "shows RooCloudCTA when user is not authenticated and has run 5 tasks" , async ( ) => {
1415+ it ( "shows RooTips when user is not authenticated and has run 5 tasks" , async ( ) => {
14161416 const { getByTestId, queryByTestId } = renderChatView ( )
14171417
14181418 // Hydrate state with user not authenticated and 5 tasks in history
@@ -1428,11 +1428,11 @@ describe("ChatView - RooCloudCTA Display Tests", () => {
14281428 clineMessages : [ ] , // No active task
14291429 } )
14301430
1431- // Should show RooCloudCTA and not RooTips
1431+ // Should show RooTips and not RooCloudCTA
14321432 await waitFor ( ( ) => {
1433- expect ( getByTestId ( "roo-cloud-cta " ) ) . toBeInTheDocument ( )
1433+ expect ( getByTestId ( "roo-tips " ) ) . toBeInTheDocument ( )
14341434 } )
1435- expect ( queryByTestId ( "roo-tips " ) ) . not . toBeInTheDocument ( )
1435+ expect ( queryByTestId ( "roo-cloud-cta " ) ) . not . toBeInTheDocument ( )
14361436 } )
14371437
14381438 it ( "does not show RooCloudCTA when there is an active task (regardless of auth status)" , async ( ) => {
@@ -1468,7 +1468,7 @@ describe("ChatView - RooCloudCTA Display Tests", () => {
14681468 } )
14691469 } )
14701470
1471- it ( "shows RooTips when user is authenticated (instead of RooCloudCTA) " , ( ) => {
1471+ it ( "shows RooTips when user is authenticated" , ( ) => {
14721472 const { queryByTestId, getByTestId } = renderChatView ( )
14731473
14741474 // Hydrate state with user authenticated to cloud
@@ -1483,12 +1483,12 @@ describe("ChatView - RooCloudCTA Display Tests", () => {
14831483 clineMessages : [ ] , // No active task
14841484 } )
14851485
1486- // Should not show RooCloudCTA but should show RooTips
1486+ // Should show RooTips and not RooCloudCTA
14871487 expect ( queryByTestId ( "roo-cloud-cta" ) ) . not . toBeInTheDocument ( )
14881488 expect ( getByTestId ( "roo-tips" ) ) . toBeInTheDocument ( )
14891489 } )
14901490
1491- it ( "shows RooTips when user has fewer than 4 tasks (instead of RooCloudCTA) " , ( ) => {
1491+ it ( "shows RooTips when user has fewer than 4 tasks" , ( ) => {
14921492 const { queryByTestId, getByTestId } = renderChatView ( )
14931493
14941494 // Hydrate state with user not authenticated but fewer than 4 tasks
@@ -1502,7 +1502,7 @@ describe("ChatView - RooCloudCTA Display Tests", () => {
15021502 clineMessages : [ ] , // No active task
15031503 } )
15041504
1505- // Should not show RooCloudCTA but should show RooTips
1505+ // Should show RooTips and not RooCloudCTA
15061506 expect ( queryByTestId ( "roo-cloud-cta" ) ) . not . toBeInTheDocument ( )
15071507 expect ( getByTestId ( "roo-tips" ) ) . toBeInTheDocument ( )
15081508 } )
0 commit comments