commercetools-8.x-1.2-alpha1/tests/modules/commercetools_test/assets/382433131df21154f70a22e2a8297d30.metadata.yml

tests/modules/commercetools_test/assets/382433131df21154f70a22e2a8297d30.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: "EUR", country: "DE") {
                value {
                  centAmount
                  currencyCode
                  fractionDigits
                }
                discounted {
                  value {
                    centAmount
                    currencyCode
                    fractionDigits
                  }
                }
              }
              availability {
                noChannel {
                  availableQuantity
                }
              }
            }
          }
        }
      }
    variables:
      queryFilters:
        -
          model:
            value:
              path: variants.attributes.color.en-US
              values:
                - 'Transparent:transparent'
        -
          model:
            value:
              path: variants.availability.isOnStock
              values: '1'
      limit: 11

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

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