diff --git a/cypress/integration/office/txo/tioFlows.js b/cypress/integration/office/txo/tioFlows.js index 774855f8efe..80aad9641cb 100644 --- a/cypress/integration/office/txo/tioFlows.js +++ b/cypress/integration/office/txo/tioFlows.js @@ -24,6 +24,9 @@ describe('TIO user', () => { cy.server(); cy.route('GET', '/ghc/v1/swagger.yaml').as('getGHCClient'); cy.route('GET', '/ghc/v1/queues/payment-requests?**').as('getPaymentRequests'); + cy.route('GET', '/ghc/v1/queues/payment-requests?sort=age&order=desc&page=1&perPage=20').as( + 'getSortedPaymentRequests', + ); cy.route('GET', '/ghc/v1/payment-requests/**').as('getPaymentRequest'); cy.route('GET', '/ghc/v1/move_task_orders/**/mto_shipments').as('getMTOShipments'); cy.route('GET', '/ghc/v1/move_task_orders/**/mto_service_items').as('getMTOServiceItems'); @@ -42,7 +45,7 @@ describe('TIO user', () => { const paymentRequestId = 'ea945ab7-099a-4819-82de-6968efe131dc'; // TIO Payment Requests queue - cy.wait(['@getGHCClient', '@getPaymentRequests']); + cy.wait(['@getGHCClient', '@getPaymentRequests', '@getSortedPaymentRequests']); cy.get('[data-uuid="' + paymentRequestId + '"]').click(); // Payment Request detail page diff --git a/cypress/integration/office/txo/tooFlows.js b/cypress/integration/office/txo/tooFlows.js index a84d4a23dc3..9237775edcc 100644 --- a/cypress/integration/office/txo/tooFlows.js +++ b/cypress/integration/office/txo/tooFlows.js @@ -10,6 +10,7 @@ describe('TOO user', () => { cy.server(); cy.route('GET', '/ghc/v1/swagger.yaml').as('getGHCClient'); cy.route('GET', '/ghc/v1/queues/moves?**').as('getMoveOrders'); + cy.route('GET', '/ghc/v1/queues/moves?page=1&perPage=20&sort=status&order=asc').as('getSortedMoveOrders'); cy.route('GET', '/ghc/v1/move-orders/**/move-task-orders').as('getMoveTaskOrders'); cy.route('GET', '/ghc/v1/move_task_orders/**/mto_shipments').as('getMTOShipments'); cy.route('GET', '/ghc/v1/move_task_orders/**/mto_service_items').as('getMTOServiceItems'); @@ -28,6 +29,7 @@ describe('TOO user', () => { const moveLocator = 'TEST12'; // TOO Moves queue + cy.wait(['@getSortedMoveOrders']); cy.contains(moveLocator).click(); cy.url().should('include', `/moves/${moveOrderId}/details`); @@ -83,6 +85,7 @@ describe('TOO user', () => { const moveLocator = 'TEST12'; // TOO Moves queue + cy.wait(['@getSortedMoveOrders']); cy.contains(moveLocator).click(); cy.url().should('include', `/moves/${moveOrderId}/details`); cy.get('[data-testid="MoveTaskOrder-Tab"]').click();