@@ -353,56 +353,6 @@ struct POSCatalogSyncRemoteTests {
353353 _ = try ? await remote. loadProductVariations ( siteID: sampleSiteID, pageNumber: pageNumber)
354354
355355 // Then
356- #expect( catalog. products. count == 2 )
357- #expect( catalog. variations. count == 2 )
358-
359- let simpleProduct = try #require( catalog. products. first { $0. productType == . simple } )
360- #expect( simpleProduct. siteID == sampleSiteID)
361- #expect( simpleProduct. productID == 48 )
362- #expect( simpleProduct. sku == " synergistic-copper-clock-61732018 " )
363- #expect( simpleProduct. globalUniqueID == " 61732018 " )
364- #expect( simpleProduct. name == " Synergistic Copper Clock " )
365- #expect( simpleProduct. price == " 220 " )
366- #expect( simpleProduct. images. count == 1 )
367- #expect( simpleProduct. images. first? . src == " https://example.com/wp-content/uploads/2025/08/img-ad.png " )
368-
369- let variableProduct = try #require( catalog. products. first { $0. productType == . variable } )
370- #expect( variableProduct. siteID == sampleSiteID)
371- #expect( variableProduct. productID == 31 )
372- #expect( variableProduct. sku == " incredible-silk-chair-13060312 " )
373- #expect( variableProduct. globalUniqueID == " " )
374- #expect( variableProduct. name == " Incredible Silk Chair " )
375- #expect( variableProduct. price == " 134.58 " )
376- #expect( variableProduct. images. count == 1 )
377- #expect( variableProduct. images. first? . src == " https://example.com/wp-content/uploads/2025/08/img-harum.png " )
378- #expect( variableProduct. attributes == [
379- . init( siteID: sampleSiteID, attributeID: 1 , name: " Size " , position: 0 , visible: true , variation: true , options: [ " Earum " ] ) ,
380- . init( siteID: sampleSiteID, attributeID: 0 , name: " Ab " , position: 1 , visible: true , variation: true , options: [ " deserunt " , " ea " , " ut " ] ) ,
381- . init( siteID: sampleSiteID,
382- attributeID: 2 ,
383- name: " Numeric Size " ,
384- position: 2 ,
385- visible: true ,
386- variation: true ,
387- options: [ " 19 " , " 8 " , " 9 " , " At " , " Reiciendis " ] )
388- ] )
389-
390- let variation = try #require( catalog. variations. first)
391- #expect( variation. siteID == sampleSiteID)
392- #expect( variation. productVariationID == 32 )
393- #expect( variation. productID == 31 )
394- #expect( variation. sku == " " )
395- #expect( variation. globalUniqueID == " " )
396- #expect( variation. price == " 330.34 " )
397- #expect( variation. fullDescription != nil )
398- #expect( variation. attributes. count == 3 )
399- #expect( variation. image? . src == " https://example.com/wp-content/uploads/2025/08/img-quae.png " )
400- #expect( variation. attributes == [
401- . init( id: 1 , name: " Size " , option: " Earum " ) ,
402- . init( id: 0 , name: " ab " , option: " deserunt " ) ,
403- . init( id: 2 , name: " Numeric Size " , option: " 19 " )
404- ] )
405-
406356 let queryParametersDictionary = try #require( network. queryParametersDictionary as? [ String : any Hashable ] )
407357 #expect( queryParametersDictionary [ " page " ] as? String == String ( pageNumber) )
408358 #expect( queryParametersDictionary [ " per_page " ] as? String == " 100 " )
@@ -457,6 +407,7 @@ struct POSCatalogSyncRemoteTests {
457407 #expect( fieldNames. contains ( " attributes " ) )
458408 #expect( fieldNames. contains ( " image " ) )
459409 #expect( fieldNames. contains ( " price " ) )
410+ #expect( fieldNames. contains ( " description " ) )
460411 #expect( fieldNames. contains ( " sku " ) )
461412 #expect( fieldNames. contains ( " global_unique_id " ) )
462413 #expect( fieldNames. contains ( " downloadable " ) )
0 commit comments