Running: support-request.spec.cy.ts (4 of 5)
Support Request
Support Request Form
1) "before each" hook for "should navigate to Buyer Cockpit or Checkout when clicking "my purchases" button"
cy:command
✔
clearLocalStorage
cy:command
✔
visit /
cy:intercept
➟
Method: POST
Matcher: "**/api/v1/users/user-request"
cy:xhr
➟
GET https://dev.caronsale.de/api/v1/public/config/system
cy:xhr
➟
GET https://dev.caronsale.de/api/v1/meta
cy:intercept
➟
Method: GET
Matcher: "/\\/api\\/v2\\/auction\\/buyer\\/[A-Za-z0-9]{5}$/"
Mocked Response: req => {
const auctionId = req.url.split('/').pop();
console.log('AUCTION ID:', auctionId);
if (auctionId === TEST_AUCTION_ID_VALID) {
req.reply({
statusCode: 200,
body: { uuid: 'test-uuid', externalId: auctionId },
});
}
else {
req.reply({ statusCode: 404, body: { message: 'Auction not found' } });
}
}
cy:command
✔
window
cy:command
✔
task clearRequestHeaders
cy:intercept
➟
Matcher: {"method":"GET","url":"**/authenticated-user"}
cy:command
✔
window
cy:command
✘
wrap {}
cy:fetch
➟
POST https://cognito-idp.eu-central-1.amazonaws.com/
Support Request Submitted
✓ should display success view after form submission (9034ms)
✓ should return to Support Request Form when clicking back button (3719ms)
✓ should navigate to Buyer Cockpit when clicking done button (3689ms)
3 passing (31s)
1 failing
1) Support Request
Support Request Form
"before each" hook for "should navigate to Buyer Cockpit or Checkout when clicking "my purchases" button":
CypressError: `cy.wrap()` timed out waiting `10000ms` to complete.
You called `cy.wrap()` with a promise that never resolved.
To increase the timeout, use `{ timeout: number }`
https://on.cypress.io/wrap
Because this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `Support Request Form`
at <unknown> (http://localhost:4200/__cypress/runner/cypress_runner.js:121289:70)
at tryCatcher (http://localhost:4200/__cypress/runner/cypress_runner.js:1807:23)
at <unknown> (http://localhost:4200/__cypress/runner/cypress_runner.js:4186:41)
at tryCatcher (http://localhost:4200/__cypress/runner/cypress_runner.js:1807:23)
at Promise._settlePromiseFromHandler (http://localhost:4200/__cypress/runner/cypress_runner.js:1519:31)
at Promise._settlePromise (http://localhost:4200/__cypress/runner/cypress_runner.js:1576:18)
at Promise._settlePromise0 (http://localhost:4200/__cypress/runner/cypress_runner.js:1621:10)
at Promise._settlePromises (http://localhost:4200/__cypress/runner/cypress_runner.js:1697:18)
at _drainQueueStep (http://localhost:4200/__cypress/runner/cypress_runner.js:2407:12)
at _drainQueue (http://localhost:4200/__cypress/runner/cypress_runner.js:2400:9)
at Async._drainQueues (http://localhost:4200/__cypress/runner/cypress_runner.js:2416:5)
at Async.drainQueues (http://localhost:4200/__cypress/runner/cypress_runner.js:2286:14)
From Your Spec Code:
at Context.eval (webpack:///../support/commands.ts:16:0)
hould navigate to Buyer Cockpit or Checkout when clicking my purchases button --
────────────────────────────────────────────────────────────────────────────────────────────────────