commercetools-8.x-1.2-alpha1/tests/modules/commercetools_test/assets/6f90da0357b2784f705232a6fa92079a.metadata.yml
tests/modules/commercetools_test/assets/6f90da0357b2784f705232a6fa92079a.metadata.yml
tests:
- 'nightwatch::modules/commercetools_demo/tests/src/Nightwatch/Tests/demoDecoupledSmokeTest.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 productsProjectionSearch($facets: [SearchFacetInput!], $queryFilters: [SearchFilterInput!], $text: String, $locale: Locale, $sorts: [String!], $languages: [Locale!], $country: Country, $currency: Currency!, $limit: Int, $offset: Int) {
productProjectionSearch(limit: $limit, offset: $offset, sorts: $sorts, facets: $facets, queryFilters: $queryFilters, text: $text, locale: $locale) {
total
facets {
facet
value {
... on TermsFacetResult {
terms {
term
productCount
}
}
}
}
results {
id
productType {
id
key
name
}
name(acceptLanguage: $languages)
slug(acceptLanguage: $languages)
masterVariant {
id
sku
images {
url
label
}
attributesRaw(includeNames: ["productspec", "color", "finish", "new-arrival", "size", "product-description", "product-description", "product-spec", "color", "finish"]) {
name
value
}
availability {
noChannel {
availableQuantity
}
}
price(country: $country, currency: $currency) {
value {
centAmount
currencyCode
fractionDigits
}
discounted {
value {
centAmount
currencyCode
fractionDigits
}
}
}
}
}
}
}
variables:
languages:
- en-US
- en-GB
country: US
currency: USD
limit: 11
offset: 0
facets:
-
model:
terms:
path: variants.attributes.color.en-US
countProducts: true
-
model:
terms:
path: variants.attributes.size.en-US
countProducts: true
sort: { }
sorts: { }
queryFilters:
-
model:
value:
path: variants.attributes.color.en-US
values:
- 'Transparent:transparent'
-
model:
value:
path: variants.availability.isOnStock
values:
- '1'
where: null
text: null
locale: null
proxy: true
