@@ -204,30 +204,38 @@ test.serial("Build library.d project multiple times", async (t) => {
204204 await fs . writeFile (
205205 changedFilePath ,
206206 ( await fs . readFile ( changedFilePath , { encoding : "utf8" } ) ) . replace (
207- `<copyright>Some fancy copyright</copyright >` ,
208- `<copyright>Some new fancy copyright</copyright >`
207+ `<documentation>Library D</documentation >` ,
208+ `<documentation>Library D (updated #1)</documentation >`
209209 )
210210 ) ;
211211
212212 // #3 build (with cache, with changes)
213213 await fixtureTester . buildProject ( {
214214 config : { destPath, cleanDest : true } ,
215215 assertions : {
216- projects : { "library.d" : { } }
216+ projects : { "library.d" : {
217+ skippedTasks : [
218+ "buildThemes" ,
219+ "escapeNonAsciiCharacters" ,
220+ "minify" ,
221+ "replaceBuildtime" ,
222+ ]
223+ } }
217224 }
218225 } ) ;
219226
220- // Check whether the changed file is in the destPath
227+ // Check whether the changes are in the destPath
221228 const builtFileContent = await fs . readFile ( `${ destPath } /resources/library/d/.library` , { encoding : "utf8" } ) ;
222229 t . true (
223- builtFileContent . includes ( `<copyright>Some new fancy copyright</copyright >` ) ,
230+ builtFileContent . includes ( `<documentation>Library D (updated #1)</documentation >` ) ,
224231 "Build dest contains changed file content"
225232 ) ;
226- // Check whether the updated copyright replacement took place
227- const builtSomeJsContent = await fs . readFile ( `${ destPath } /resources/library/d/some.js` , { encoding : "utf8" } ) ;
233+
234+ // Check whether the manifest.json was updated with the new documentation
235+ const manifestContent = await fs . readFile ( `${ destPath } /resources/library/d/manifest.json` , { encoding : "utf8" } ) ;
228236 t . true (
229- builtSomeJsContent . includes ( `Some new fancy copyright ` ) ,
230- "Build dest contains updated copyright in some.js "
237+ manifestContent . includes ( `"Library D (updated #1)" ` ) ,
238+ "Build dest contains updated description in manifest.json "
231239 ) ;
232240
233241 // #4 build (with cache, no changes)
@@ -237,6 +245,8 @@ test.serial("Build library.d project multiple times", async (t) => {
237245 projects : { }
238246 }
239247 } ) ;
248+
249+ // TODO: Change copyright in ui5.yaml and expect that a full rebuild is triggered
240250} ) ;
241251
242252test . serial ( "Build theme.library.e project multiple times" , async ( t ) => {
0 commit comments