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 (6242ms)
✓ should navigate to Buyer Cockpit when clicking cancel button (3135ms)
✓ should submit support request with "Other" topic and simple description (3810ms)
✓ should display validation errors when submitting empty form (2358ms)
✓ should enforce character limit on description field when typing (19129ms)
✓ should enforce character limit on description field when pasting text (2811ms)
✓ should display validation error for reason when topic requires it (2745ms)
✓ should display validation error for auction ID when topic requires it (3984ms)
✓ should display validation error for auction ID when it has wrong length (3324ms)
✓ should display validation error for missing documents when required (3824ms)
✓ should not require auction ID for "Other" topic (3310ms)
✓ should show select documents field when topic is "Vehicle Documents" and reason is "Missing Vehicle Documents" (3101ms)
✓ should hide select documents field when reason is changed to something other than "Missing Vehicle Documents" (3216ms)
✓ should submit support request with "Vehicle Documents" topic and missing documents selected (4211ms)
✓ should display file upload components (1855ms)
✓ should upload a file and show it in the upload component (2484ms)
✓ should require terms and conditions checkbox when file is uploaded (3489ms)
1) "before each" hook for "should submit form successfully when file is uploaded and terms checkbox is checked"
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:command
✔
window
cy:command
✔
task clearRequestHeaders
cy:xhr
➟
GET https://dev.caronsale.de/api/v1/meta
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
2) "before each" hook for "should display success view after form submission"
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: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/
17 passing (2m)
2 failing
1) Support Request
Support Request Form
"before each" hook for "should submit form successfully when file is uploaded and terms checkbox is checked":
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:15:0)
2) Support Request
Support Request Submitted
"before each" hook for "should display success view after form submission":
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 Submitted`
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:15:0)
hould submit form successfully when file is uploaded and terms checkbox is check
-- should display success view after form submission -- before each hook (faile
d).png
────────────────────────────────────────────────────────────────────────────────────────────────────