11import { render , screen } from "@/utils/test-utils"
22
3- import { AccountView } from "../AccountView "
3+ import { CloudView } from "../CloudView "
44
55// Mock the translation context
66vi . mock ( "@src/i18n/TranslationContext" , ( ) => ( {
77 useAppTranslation : ( ) => ( {
88 t : ( key : string ) => {
99 const translations : Record < string , string > = {
10- "account :title" : "Account " ,
10+ "cloud :title" : "Cloud " ,
1111 "settings:common.done" : "Done" ,
12- "account :signIn" : "Connect to Roo Code Cloud" ,
13- "account :cloudBenefitsTitle" : "Connect to Roo Code Cloud" ,
14- "account :cloudBenefitSharing" : "Share tasks with others" ,
15- "account :cloudBenefitHistory" : "Access your task history" ,
16- "account :cloudBenefitMetrics" : "Get a holistic view of your token consumption" ,
17- "account :logOut" : "Log out" ,
18- "account :connect" : "Connect Now" ,
19- "account :visitCloudWebsite" : "Visit Roo Code Cloud" ,
20- "account :remoteControl" : "Roomote Control" ,
21- "account :remoteControlDescription" :
12+ "cloud :signIn" : "Connect to Roo Code Cloud" ,
13+ "cloud :cloudBenefitsTitle" : "Connect to Roo Code Cloud" ,
14+ "cloud :cloudBenefitSharing" : "Share tasks with others" ,
15+ "cloud :cloudBenefitHistory" : "Access your task history" ,
16+ "cloud :cloudBenefitMetrics" : "Get a holistic view of your token consumption" ,
17+ "cloud :logOut" : "Log out" ,
18+ "cloud :connect" : "Connect Now" ,
19+ "cloud :visitCloudWebsite" : "Visit Roo Code Cloud" ,
20+ "cloud :remoteControl" : "Roomote Control" ,
21+ "cloud :remoteControlDescription" :
2222 "Enable following and interacting with tasks in this workspace with Roo Code Cloud" ,
23- "account :profilePicture" : "Profile picture" ,
23+ "cloud :profilePicture" : "Profile picture" ,
2424 }
2525 return translations [ key ] || key
2626 } ,
@@ -55,10 +55,10 @@ Object.defineProperty(window, "IMAGES_BASE_URI", {
5555 writable : true ,
5656} )
5757
58- describe ( "AccountView " , ( ) => {
58+ describe ( "CloudView " , ( ) => {
5959 it ( "should display benefits when user is not authenticated" , ( ) => {
6060 render (
61- < AccountView
61+ < CloudView
6262 userInfo = { null }
6363 isAuthenticated = { false }
6464 cloudApiUrl = "https://app.roocode.com"
@@ -83,7 +83,7 @@ describe("AccountView", () => {
8383 }
8484
8585 render (
86- < AccountView
86+ < CloudView
8787 userInfo = { mockUserInfo }
8888 isAuthenticated = { true }
8989 cloudApiUrl = "https://app.roocode.com"
@@ -112,7 +112,7 @@ describe("AccountView", () => {
112112 }
113113
114114 render (
115- < AccountView
115+ < CloudView
116116 userInfo = { mockUserInfo }
117117 isAuthenticated = { true }
118118 cloudApiUrl = "https://app.roocode.com"
@@ -136,7 +136,7 @@ describe("AccountView", () => {
136136 }
137137
138138 render (
139- < AccountView
139+ < CloudView
140140 userInfo = { mockUserInfo }
141141 isAuthenticated = { true }
142142 cloudApiUrl = "https://app.roocode.com"
0 commit comments