Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Conversation

@pfantini
Copy link
Contributor

@pfantini pfantini commented Sep 26, 2018

Description

#57

  1. Create mutation to add/update/remove addresses.
  2. Create functional test.
  3. (PLUS) Fix default shipping and default billing information in customerDataProvider

Manual testing scenarios

  1. Run the following request in GraphQL to add new address:
mutation{
  customerAddressCreate(input:{
    prefix: "Sr."
    firstname: "John"
    lastname: "Smith"
    telephone: "123456789"
    street: ["Line 1", "Line 2"]
    city: "Test City"
    region_id: 1
    country_id: US
    postcode: "9999"
    default_shipping: true
    default_billing: true
  }) {
    id
    customer_id
    firstname
    lastname
  } 
}
  1. Run the following request in GraphQL to update address:
mutation {
  customerAddressUpdate(id:7, input: {
    city: "New City"
    postcode: "5555"
  }) {
    id
    customer_id
    postcode
  }
}
  1. Run the following request in GraphQL to delete address:
mutation{
  customerAddressDelete(id:7)
}

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@pfantini pfantini force-pushed the 57-manage-address-book branch from 889f187 to fbefe29 Compare September 26, 2018 14:31
@pfantini pfantini changed the title 57 manage address book #57 manage address book Sep 27, 2018
@pfantini pfantini changed the title #57 manage address book GraphQL-57: Manage Address Book Sep 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants