commercetools-8.x-1.2-alpha1/tests/modules/commercetools_test/assets/f6b023bb13ba6ca278c2b3dfaf563735.metadata.yml
tests/modules/commercetools_test/assets/f6b023bb13ba6ca278c2b3dfaf563735.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-machinery/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"])
name(acceptLanguage: ["en-US"])
masterVariant {
id
sku
images {
url
label
}
attributesRaw(includeNames: ["capacity", "iso45001", "mobility", "model", "capacity", "iso45001", "mobility", "color"]) {
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:
tree:
path: categories.id
rootValues: { }
subTreeValues:
- 0b65d8cb-24e2-4776-ae8c-feffd3e5ddaa
- fadae004-72ed-4feb-b3ea-66667d59b8e1
- f009ccb8-3166-468c-a1c6-1ab617a6f56b
- 27db8212-e60f-45e7-8979-b13ae98d3872
facets:
-
model:
terms:
path: variants.attributes.mobility.label
countProducts: true
-
model:
terms:
path: variants.attributes.color.label.en-US
countProducts: true
-
model:
range:
countProducts: false
path: variants.price.centAmount
ranges:
from: '0'
to: '*'
limit: 6
sorts: 'createdAt asc'
