commercetools-8.x-1.2-alpha1/tests/modules/commercetools_test/assets/a45fb7b6858f61b8c61d9d9c9fadf9a1.metadata.yml
tests/modules/commercetools_test/assets/a45fb7b6858f61b8c61d9d9c9fadf9a1.metadata.yml
tests:
- 'nightwatch::modules/commercetools_decoupled/tests/src/Nightwatch/Tests/decoupledUserOrdersTest.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 getOrders($where: String, $sort: [String!], $limit: Int, $offset: Int, $languages: [Locale!], $country: Country, $currency: Currency!) {
orders(where: $where, sort: $sort, limit: $limit, offset: $offset) {
total
results {
id
orderNumber
orderState
customerId
lineItems {
id
name(acceptLanguage: $languages)
productSlug(acceptLanguage: $languages)
quantity
productType {
id
key
name
}
variant {
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
}
}
}
}
price {
value {
centAmount
currencyCode
fractionDigits
}
discounted {
value {
centAmount
currencyCode
fractionDigits
}
}
}
totalPrice {
centAmount
currencyCode
fractionDigits
}
}
totalPrice {
centAmount
currencyCode
fractionDigits
}
}
}
}
variables:
where: 'customerId="9652463c-04db-48d0-a818-0d3b3aa97707"'
sort: { }
limit: 11
offset: 0
languages:
- en-US
country: US
currency: USD
proxy: true
