@@ -51,7 +51,8 @@ const customerTestPassword = 'test';
5151const exampleCreteReviewProduct = {
5252 title : 'Good company' ,
5353 description : 'Good company' ,
54- stars : 5
54+ stars : 5 ,
55+ customerNameIsPublic : false
5556} ;
5657
5758describe ( 'Review Product E2E' , ( ) => {
@@ -139,6 +140,7 @@ describe('Review Product E2E', () => {
139140 ) . resolves . toEqual ( {
140141 createReviewProduct : {
141142 id : 'T_1' ,
143+ customerName : null ,
142144 ...exampleCreteReviewProduct
143145 }
144146 } ) ;
@@ -186,6 +188,7 @@ describe('Review Product E2E', () => {
186188 items : [
187189 {
188190 id : 'T_1' ,
191+ customerName : null ,
189192 ...exampleCreteReviewProduct
190193 }
191194 ]
@@ -199,6 +202,7 @@ describe('Review Product E2E', () => {
199202 ) . resolves . toEqual ( {
200203 reviewProduct : {
201204 id : 'T_1' ,
205+ customerName : null ,
202206 ...exampleCreteReviewProduct
203207 }
204208 } ) ;
@@ -300,6 +304,7 @@ describe('Review Product E2E', () => {
300304 items : [
301305 {
302306 id : 'T_1' ,
307+ customerName : null ,
303308 ...exampleCreteReviewProduct
304309 }
305310 ]
@@ -321,13 +326,16 @@ describe('Review Product E2E', () => {
321326 > ( SHOP_UPDATE_REVIEW_PRODUCT , {
322327 input : {
323328 id : 'T_1' ,
324- ...exampleCreteReviewProduct
329+ ...exampleCreteReviewProduct ,
330+ customerNameIsPublic : true
325331 }
326332 } )
327333 ) . resolves . toEqual ( {
328334 updateReviewProduct : {
329335 id : 'T_1' ,
330- ...exampleCreteReviewProduct
336+ ...exampleCreteReviewProduct ,
337+ customerNameIsPublic : true ,
338+ customerName : 'Trevor'
331339 }
332340 } ) ;
333341 } ) ;
@@ -353,7 +361,8 @@ describe('Review Product E2E', () => {
353361 } ,
354362 nextStates : [ 'Authorized' , 'Denied' ] ,
355363 state : 'Updated' ,
356- ...exampleCreteReviewProduct
364+ ...exampleCreteReviewProduct ,
365+ customerNameIsPublic : true
357366 }
358367 } ) ;
359368 } ) ;
0 commit comments