Skip to content

Commit

Permalink
Sort my orders by createdAt, to avoid random order
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraluiz committed Oct 18, 2019
1 parent e84fdeb commit f2d47d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/useraccount/myorders/TabOrderList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default {
query: gql`
query MyOrders {
me {
orders {
orders(sort: "createdAt desc") {
results {
id
orderNumber
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/specs/orderList_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('my orders', () => {
cy.get('[data-test=my-orders-button]', { timeout: 20000 }).click();
cy.get('[data-test=order-list]')
.should('have.length', 2)
.eq(0)
.eq(1)
.then(($order) => {
cy.wrap($order)
.find('[data-test=total-price]')
Expand Down

0 comments on commit f2d47d0

Please sign in to comment.