@@ -23,7 +23,7 @@ test.describe.serial("Test Scaffolder Backend Module Annotator Actions", () => {
23
23
componentPartialName : `test-scaffoldedfromlink-` ,
24
24
description : "react app using template" ,
25
25
label : "some-label" ,
26
- annotation : "some-annoation " ,
26
+ annotation : "some-annotation " ,
27
27
repo : `test-scaffolded-${ Date . now ( ) } ` ,
28
28
repoOwner : Buffer . from (
29
29
process . env . GITHUB_ORG || "amFudXMtcWU=" ,
@@ -165,40 +165,34 @@ test.describe.serial("Test Scaffolder Backend Module Annotator Actions", () => {
165
165
await uiHelper . verifyText ( "Provide some simple information" ) ;
166
166
} ) ;
167
167
168
- test ( "Verify Registered Template has templated label in entity Raw Yaml" , async ( ) => {
169
- await uiHelper . openSidebar ( "Catalog ") ;
170
- await uiHelper . selectMuiBox ( "Kind" , "Template" ) ;
168
+ test ( "Verify Registered Component has templated label in entity Raw Yaml" , async ( ) => {
169
+ await uiHelper . openCatalogSidebar ( "Component ") ;
170
+ await uiHelper . searchInputPlaceholder ( reactAppDetails . componentName ) ;
171
171
172
- await uiHelper . searchInputPlaceholder ( "Create React App Template\n" ) ;
173
- await uiHelper . verifyRowInTableByUniqueText ( "Create React App Template" , [
174
- "website" ,
175
- ] ) ;
176
- await uiHelper . clickLink ( "Create React App Template" ) ;
172
+ await uiHelper . verifyRowInTableByUniqueText (
173
+ ` ${ reactAppDetails . componentName } ` ,
174
+ [ "website" ] ,
175
+ ) ;
176
+ await uiHelper . clickLink ( ` ${ reactAppDetails . componentName } ` ) ;
177
177
178
178
await catalogImport . inspectEntityAndVerifyYaml (
179
- `labels:\n custom: some- label\n` ,
179
+ `labels:\n custom: ${ reactAppDetails . label } \n` ,
180
180
) ;
181
-
182
- await uiHelper . clickLink ( "Launch Template" ) ;
183
- await uiHelper . verifyText ( "Provide some simple information" ) ;
184
181
} ) ;
185
182
186
- test ( "Verify Registered Template has templated annotation in entity Raw Yaml" , async ( ) => {
187
- await uiHelper . openSidebar ( "Catalog ") ;
188
- await uiHelper . selectMuiBox ( "Kind" , "Template" ) ;
183
+ test ( "Verify Registered Component has templated annotation in entity Raw Yaml" , async ( ) => {
184
+ await uiHelper . openCatalogSidebar ( "Component ") ;
185
+ await uiHelper . searchInputPlaceholder ( reactAppDetails . componentName ) ;
189
186
190
- await uiHelper . searchInputPlaceholder ( "Create React App Template\n" ) ;
191
- await uiHelper . verifyRowInTableByUniqueText ( "Create React App Template" , [
192
- "website" ,
193
- ] ) ;
194
- await uiHelper . clickLink ( "Create React App Template" ) ;
187
+ await uiHelper . verifyRowInTableByUniqueText (
188
+ ` ${ reactAppDetails . componentName } ` ,
189
+ [ "website" ] ,
190
+ ) ;
191
+ await uiHelper . clickLink ( ` ${ reactAppDetails . componentName } ` ) ;
195
192
196
193
await catalogImport . inspectEntityAndVerifyYaml (
197
- `custom.io/annotation: backstage.io/some- annotation` ,
194
+ `custom.io/annotation: ${ reactAppDetails . annotation } ` ,
198
195
) ;
199
-
200
- await uiHelper . clickLink ( "Launch Template" ) ;
201
- await uiHelper . verifyText ( "Provide some simple information" ) ;
202
196
} ) ;
203
197
204
198
test ( "Verify Registered Template has templated version in entity Raw Yaml" , async ( ) => {
@@ -214,9 +208,15 @@ test.describe.serial("Test Scaffolder Backend Module Annotator Actions", () => {
214
208
await catalogImport . inspectEntityAndVerifyYaml (
215
209
`backstage.io/template-version: 0.0.1` ,
216
210
) ;
211
+ } ) ;
217
212
218
- await uiHelper . clickLink ( "Launch Template" ) ;
219
- await uiHelper . verifyText ( "Provide some simple information" ) ;
213
+ test ( "Verify Registered Component has templated version in entity Raw Yaml" , async ( ) => {
214
+ await uiHelper . openCatalogSidebar ( "Component" ) ;
215
+ await uiHelper . searchInputPlaceholder ( reactAppDetails . componentName ) ;
216
+
217
+ await catalogImport . inspectEntityAndVerifyYaml (
218
+ `backstage.io/template-version: 0.0.1` ,
219
+ ) ;
220
220
} ) ;
221
221
222
222
test . afterAll ( async ( ) => {
0 commit comments