commercetools-8.x-1.2-alpha1/tests/modules/commercetools_test/assets/e3cd5878bd3288dc1c36a5bed909b278.metadata.yml
tests/modules/commercetools_test/assets/e3cd5878bd3288dc1c36a5bed909b278.metadata.yml
tests:
- 'nightwatch::modules/commercetools_content/tests/src/Nightwatch/Tests/contentErrorsTest.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"])
name(acceptLanguage: ["en-US"])
description(acceptLanguage: ["en-US"])
metaTitle(acceptLanguage: ["en-US"])
metaDescription(acceptLanguage: ["en-US"])
metaKeywords(acceptLanguage: ["en-US"])
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
}
}
}
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: "USD", country: "US") {
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="not-existent-product")))'
