@@ -168,17 +168,20 @@ describe('OrcidSyncSettingsComponent test suite', () => {
168168 it ( 'should create cards properly' , ( ) => {
169169 const modes = fixture . debugElement . query ( By . css ( '[data-test="sync-mode"]' ) ) ;
170170 const publication = fixture . debugElement . query ( By . css ( '[data-test="sync-mode-publication"]' ) ) ;
171+ const product = fixture . debugElement . query ( By . css ( '[data-test="sync-mode-product"]' ) ) ;
171172 const funding = fixture . debugElement . query ( By . css ( '[data-test="sync-mode-funding"]' ) ) ;
172173 const preferences = fixture . debugElement . query ( By . css ( '[data-test="profile-preferences"]' ) ) ;
173174 expect ( modes ) . toBeTruthy ( ) ;
174175 expect ( publication ) . toBeTruthy ( ) ;
176+ expect ( product ) . toBeTruthy ( ) ;
175177 expect ( funding ) . toBeTruthy ( ) ;
176178 expect ( preferences ) . toBeTruthy ( ) ;
177179 } ) ;
178180
179181 it ( 'should init sync modes properly' , ( ) => {
180182 expect ( comp . currentSyncMode ) . toBe ( 'MANUAL' ) ;
181183 expect ( comp . currentSyncPublications ) . toBe ( 'ALL' ) ;
184+ expect ( comp . currentSyncProduct ) . toBe ( 'DISABLED' ) ;
182185 expect ( comp . currentSyncFunding ) . toBe ( 'DISABLED' ) ;
183186 } ) ;
184187
@@ -189,6 +192,7 @@ describe('OrcidSyncSettingsComponent test suite', () => {
189192 formGroup = new UntypedFormGroup ( {
190193 syncMode : new UntypedFormControl ( 'MANUAL' ) ,
191194 syncFundings : new UntypedFormControl ( 'ALL' ) ,
195+ syncProducts : new UntypedFormControl ( 'ALL' ) ,
192196 syncPublications : new UntypedFormControl ( 'ALL' ) ,
193197 syncProfile_BIOGRAPHICAL : new UntypedFormControl ( true ) ,
194198 syncProfile_IDENTIFIERS : new UntypedFormControl ( true ) ,
@@ -208,6 +212,10 @@ describe('OrcidSyncSettingsComponent test suite', () => {
208212 path : '/orcid/publications' ,
209213 op : 'replace' ,
210214 value : 'ALL'
215+ } , {
216+ path : '/orcid/products' ,
217+ op : 'replace' ,
218+ value : 'ALL'
211219 } , {
212220 path : '/orcid/fundings' ,
213221 op : 'replace' ,
0 commit comments