commercetools-8.x-1.2-alpha1/tests/modules/commercetools_test/assets/2182d0ae2ddbc6a28d8d514b9c7f7687.metadata.yml
tests/modules/commercetools_test/assets/2182d0ae2ddbc6a28d8d514b9c7f7687.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 getProducts($limit: Int, $offset: Int, $where: String, $sort: [String!], $skus: [String!]) {
products(limit: $limit, offset: $offset, where: $where, sort: $sort, skus: $skus) {
total
results {
id
masterData {
current {
skus
slug(acceptLanguage: ["en-US", "en-GB"])
name(acceptLanguage: ["en-US", "en-GB"])
description(acceptLanguage: ["en-US", "en-GB"])
metaTitle(acceptLanguage: ["en-US", "en-GB"])
metaDescription(acceptLanguage: ["en-US", "en-GB"])
metaKeywords(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
}
}
}
variants {
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
}
}
}
}
}
productType {
id
key
name
}
}
}
}
variables:
limit: 1
where: 'masterData(current(slug(en-US="ecru-double-bed" or en-GB="ecru-double-bed")))'
