@@ -130,55 +130,28 @@ describe('FSXAProxyAPIRemoteProjects should resolve references', () => {
130130 md_dataset : datasetReference ,
131131 }
132132
133- const localMediaRes = await caasClient . addItemsToCollection (
134- [ localMedia ] ,
135- projectLocale
136- )
137- // DIAGNOSTIC: temporary, remove after root-causing CAAS-2680 flakiness
138- console . log (
139- `[diag] addItemsToCollection(localMedia) -> ${ localMediaRes . status } ${ await localMediaRes . clone ( ) . text ( ) } `
140- )
133+ await caasClient . addItemsToCollection ( [ localMedia ] , projectLocale )
141134
142135 const [ language , country ] = remoteProjectLocale . split ( '_' )
143136
144137 // add items to remote project collection
145- const remoteMediaRes = await caasClient . addItemsToRemoteCollection (
146- [ remoteMedia , dataset ] ,
147- {
148- language,
149- country,
150- identifier : remoteProjectLocale ,
151- }
152- )
153- // DIAGNOSTIC: temporary, remove after root-causing CAAS-2680 flakiness
154- console . log (
155- `[diag] addItemsToRemoteCollection(remoteMedia,dataset) -> ${ remoteMediaRes ?. status } ${ await remoteMediaRes ?. clone ( ) . text ( ) } `
156- )
138+ await caasClient . addItemsToRemoteCollection ( [ remoteMedia , dataset ] , {
139+ language,
140+ country,
141+ identifier : remoteProjectLocale ,
142+ } )
157143
158144 pageRef . page . formData = {
159145 pt_pictureLocal : pictureLocal ,
160146 pt_pictureRemote : pictureRemote ,
161147 }
162148
163- const pageRefRes = await caasClient . addItemsToCollection (
164- [ pageRef ] ,
165- projectLocale
166- )
167- // DIAGNOSTIC: temporary, remove after root-causing CAAS-2680 flakiness
168- console . log (
169- `[diag] addItemsToCollection(pageRef) -> ${ pageRefRes . status } ${ await pageRefRes . clone ( ) . text ( ) } `
170- )
149+ await caasClient . addItemsToCollection ( [ pageRef ] , projectLocale )
171150
172151 // Wait for CaaS to propagate all data before tests run
173- let pollAttempt = 0
174152 await waitUntilPreconditionMet (
175153 async ( ) => {
176- pollAttempt ++
177154 const res = await caasClient . getItem ( pageRef . identifier , 'de_DE' )
178- // DIAGNOSTIC: temporary, remove after root-causing CAAS-2680 flakiness
179- console . log (
180- `[diag] poll #${ pollAttempt } getItem(pageRef=${ pageRef . identifier } ) -> ${ res . status } `
181- )
182155 return res . status === 200
183156 } ,
184157 {
0 commit comments