Running: support-request.spec.cy.ts (4 of 5)
Support Request
Support Request Form
✓ should navigate to Buyer Cockpit or Checkout when clicking "my purchases" button (4810ms)
✓ should navigate to Buyer Cockpit when clicking cancel button (2530ms)
✓ should submit support request with "Other" topic and simple description (3489ms)
✓ should display validation errors when submitting empty form (2070ms)
✓ should enforce character limit on description field when typing (17919ms)
✓ should enforce character limit on description field when pasting text (3520ms)
✓ should display validation error for reason when topic requires it (3185ms)
✓ should display validation error for auction ID when topic requires it (3662ms)
✓ should display validation error for auction ID when it has wrong length (5547ms)
✓ should display validation error for missing documents when required (4622ms)
✓ should not require auction ID for "Other" topic (3282ms)
✓ should show select documents field when topic is "Vehicle Documents" and reason is "Missing Vehicle Documents" (4308ms)
✓ should hide select documents field when reason is changed to something other than "Missing Vehicle Documents" (3999ms)
1) "before each" hook for "should submit support request with "Vehicle Documents" topic and missing documents selected"
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
Status: 200
cy:xhr
➟
GET https://dev.caronsale.de/api/v1/meta
Status: 200
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/
Status: 200
cons:log
✱
Angular is running in development mode.
cy:xhr
➟
GET https://res.cloudinary.com/castle-tech-gmbh/raw/upload/i18n/frontend-web/en.json?t=1770656483946
Status: 200
cy:xhr
➟
GET https://dev.caronsale.de/api/v1/meta
Status: 200
cy:xhr
➟
(e2e-buyer-alice) GET https://dev.caronsale.de/api/v1/authenticated-user
Status: 200
cy:xhr
➟
GET https://dev.caronsale.de/api/v1/users/profile/
Status: 200
cy:command
✔
wait @e2e-buyer-alice
cy:command
✔
task setRequestHeaders, Object{3}
cy:command
✔
task getRequestHeaders
cy:command
✔
assert expected **e2e-buyer-alice@caronsale.de** to equal **e2e-buyer-alice@caronsale.de**
Actual: "e2e-buyer-alice@caronsale.de"
Expected: "e2e-buyer-alice@caronsale.de"
cy:command
✔
window
cy:xhr
➟
GET https://dev.caronsale.de/api/v1/profile/salesman/e2e-buyer-alice@caronsale.de
Status: 200
cy:command
✘
then function(){}
Support Request Submitted
✓ should display success view after form submission (7612ms)
✓ should return to Support Request Form when clicking back button (4489ms)
✓ should navigate to Buyer Cockpit when clicking done button (3512ms)
16 passing (2m)
1 failing
1) Support Request
Support Request Form
"before each" hook for "should submit support request with "Vehicle Documents" topic and missing documents selected":
CypressError: `cy.then()` timed out after waiting `10000ms`.
Your callback function returned a promise that never resolved.
The callback function was:
window => window.navigateByUrl(url)
https://on.cypress.io/then
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:119185:75)
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:25:0)
hould submit support request with Vehicle Documents topic and missing documents
────────────────────────────────────────────────────────────────────────────────────────────────────