commercetools-8.x-1.2-alpha1/tests/modules/commercetools_test/assets/10a1d45682a30d600e5c7adbbed2e070.metadata.yml
tests/modules/commercetools_test/assets/10a1d45682a30d600e5c7adbbed2e070.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 getCart($id: String!, $languages: [Locale!], $country: Country, $currency: Currency!) {
cart(id: $id) {
id
cartState
version
customerId
totalLineItemQuantity
totalPrice {
centAmount
currencyCode
fractionDigits
}
discountOnTotalPrice {
includedDiscounts {
discount {
id
name(acceptLanguage: $languages)
}
discountedAmount {
centAmount
currencyCode
fractionDigits
}
}
}
discountCodes {
discountCode {
id
code
name(acceptLanguage: $languages)
cartDiscounts {
id
}
}
}
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
}
discountedPricePerQuantity {
quantity
discountedPrice {
value {
centAmount
currencyCode
fractionDigits
}
includedDiscounts {
discount {
id
}
discountedAmount {
centAmount
currencyCode
fractionDigits
}
}
}
}
}
shippingAddress {
id
key
title
postalCode
streetName
streetNumber
city
region
state
country
phone
mobile
firstName
lastName
email
}
billingAddress {
id
key
title
postalCode
streetName
streetNumber
city
region
state
country
phone
mobile
firstName
lastName
email
}
}
}
variables:
id: 9bf6fd3a-ebee-4473-a941-04806875d78c
languages:
- en-US
- en-GB
country: DE
currency: EUR
proxy: true
