commercetools-8.x-1.2-alpha1/tests/modules/commercetools_test/assets/7f0814c3e5aea2d54f798c430bdb6ffa.metadata.yml

tests/modules/commercetools_test/assets/7f0814c3e5aea2d54f798c430bdb6ffa.metadata.yml
tests:
  - 'nightwatch::modules/commercetools_demo/tests/src/Nightwatch/Tests/demoContentSmokeTest.js'
response:
  status: 200
request:
  method: POST
  uri: 'https://api.us-central1.gcp.commercetools.com/drupal-connector-demo-lifestyle/graphql'
  body_formatted: |
    # Encoded using YAML format by the function .CommerceToolsTesting::formatCtRequestAssetMetadata()
    query: |
      query getProductProjectionSearch($limit: Int, $offset: Int, $sorts: [String!], $facets: [SearchFacetInput!], $filters: [SearchFilterInput!], $queryFilters: [SearchFilterInput!], $text: String, $locale: Locale, $storeProjection: String) {
        productProjectionSearch(limit: $limit, offset: $offset, sorts: $sorts, facets: $facets, filters: $filters, queryFilters: $queryFilters, text: $text, locale: $locale, storeProjection: $storeProjection) {
          total
          results {
            id
            productType {
              id
              key
              name
            }
            slug(acceptLanguage: ["en-US", "en-GB"])
            name(acceptLanguage: ["en-US", "en-GB"])
            masterVariant {
              id
              sku
              images {
                url
                label
              }
              attributesRaw(includeNames: ["productspec", "color", "finish", "new-arrival", "size", "product-description", "product-description", "product-spec", "color", "finish"]) {
                name
                value
              }
              price(currency: "USD", country: "US") {
                value {
                  centAmount
                  currencyCode
                  fractionDigits
                }
                discounted {
                  value {
                    centAmount
                    currencyCode
                    fractionDigits
                  }
                }
              }
              availability {
                noChannel {
                  availableQuantity
                }
              }
            }
          }
          facets {
            facet
            value {
              ... on TermsFacetResult {
                terms {
                  term
                  productCount
                }
              }
              ... on RangeFacetResult {
                ranges {
                  type
                  ... on RangeCountDouble {
                    min
                    max
                  }
                }
              }
            }
          }
        }
      }
    variables:
      queryFilters:
        -
          model:
            value:
              path: variants.attributes.color.en-US
              values:
                - 'Transparent:transparent'
        -
          model:
            value:
              path: variants.availability.isOnStock
              values: '1'
      facets:
        -
          model:
            terms:
              path: variants.attributes.color.en-US
              countProducts: true
        -
          model:
            terms:
              path: variants.attributes.size.en-US
              countProducts: true
        -
          model:
            range:
              countProducts: false
              path: variants.price.centAmount
              ranges:
                from: '0'
                to: '*'
      limit: 11

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc