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 (5297ms)
✓ should navigate to Buyer Cockpit when clicking cancel button (2802ms)
✓ should submit support request with "Other" topic and simple description (3842ms)
✓ should display validation errors when submitting empty form (2211ms)
✓ should enforce character limit on description field when typing (18372ms)
✓ should enforce character limit on description field when pasting text (3060ms)
✓ should display validation error for reason when topic requires it (3500ms)
✓ should display validation error for auction ID when topic requires it (3765ms)
✓ should display validation error for auction ID when it has wrong length (3978ms)
✓ should display validation error for missing documents when required (4584ms)
✓ should not require auction ID for "Other" topic (4719ms)
✓ should show select documents field when topic is "Vehicle Documents" and reason is "Missing Vehicle Documents" (3858ms)
✓ should hide select documents field when reason is changed to something other than "Missing Vehicle Documents" (3916ms)
✓ should submit support request with "Vehicle Documents" topic and missing documents selected (5275ms)
✓ should display file upload components (2823ms)
✓ should upload a file and show it in the upload component (2688ms)
✓ should require terms and conditions checkbox when file is uploaded (3735ms)
✓ should submit form successfully when file is uploaded and terms checkbox is checked (3834ms)
✓ should not submit form when file is uploaded and terms checkbox is not checked (3810ms)
1) should allow deleting an uploaded file
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=1770215179281
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:xhr
➟
GET https://dev.caronsale.de/api/v1/account/data/855040ef-aca9-471c-b604-94da31763921?augment=settingsBuyer
Status: 200
cy:xhr
❖
GET http://localhost:4200/__cypress__/feature-flags/value/mpw-restrict-permissions-based-on-account-group
Status: 404
cy:command
✔
new url http://localhost:4200/salesman/support
cy:command
✔
get body
cy:command
✔
url
cy:command
✔
assert expected **http://localhost:4200/salesman/support** to include **/salesman/support**
cy:command
✔
get [data-cy=support-request_form]
cy:command
✔
assert expected **<app-support-request-form>** to be **visible**
cy:intercept
➟
Method: POST
Matcher: "**/api.cloudinary.com/v1_1/**/upload"
Mocked Response: {"statusCode":200,"body":{"secure_url":"https://res.cloudinary.com/test/image/upload/test-file-1.png","public_id":"test-public-id-1"}}
cy:xhr
❖
GET http://localhost:4200/__cypress__/feature-flags/value/cat-sign-up-funnel-experiment-hide-prices
Status: 404
cy:xhr
❖
GET http://localhost:4200/__cypress__/feature-flags/value/cat-sign-up-funnel-experiment-hide-prices-and-kyc-automation
Status: 404
cy:xhr
❖
GET http://localhost:4200/__cypress__/feature-flags/value/trx-non-hot-bid-recent-endings-refresh-interval
Status: 404
cy:xhr
❖
GET http://localhost:4200/__cypress__/feature-flags/is-on/trx-optimized-auction-polling
Status: 404
cy:xhr
❖
GET http://localhost:4200/__cypress__/feature-flags/value/mpw-hot-bid-bidding-info-refresh-interval
Status: 404
cy:xhr
❖
GET http://localhost:4200/__cypress__/feature-flags/value/mpw-non-hot-bid-bidding-info-refresh-interval
Status: 404
cy:xhr
➟
GET https://dev.caronsale.de/api/v1/auction/salesman/counts?types=parked&filter=%7B%7D
Status: 200
cy:xhr
➟
GET https://dev.caronsale.de/api/v2/auction/buyer/saved-search?filter={%22limit%22:10,%22offset%22:0}
Status: 200
cy:xhr
➟
GET https://dev.caronsale.de/api/v1/profile/salesman/e2e-buyer-alice@caronsale.de/contact
Status: 200
cy:intercept
➟
Method: DELETE
Matcher: "**/media/file?fileURL=*"
Mocked Response: {"statusCode":200,"body":{"succes":true}}
cy:xhr
❖
GET http://localhost:4200/__cypress__/feature-flags/value/mpw-power-list-items-per-page
Status: 404
cy:xhr
❖
GET http://localhost:4200/__cypress__/feature-flags/is-on/eg-frequent-buyer-program
Status: 404
cy:xhr
❖
GET http://localhost:4200/__cypress__/feature-flags/value/sup-new-menu-flag
Status: 404
cy:xhr
❖
GET http://localhost:4200/__cypress__/feature-flags/is-on/ccse-complaints-list
Status: 404
cy:xhr
❖
GET http://localhost:4200/__cypress__/feature-flags/is-on/pni-payment-overview-enabled
Status: 404
cy:xhr
❖
GET http://localhost:4200/__cypress__/feature-flags/is-on/pni-new-checkout-page-enabled
Status: 404
cy:xhr
❖
GET http://localhost:4200/__cypress__/feature-flags/value/mpw-restrict-permissions-based-on-account-group
Status: 404
cy:xhr
❖
GET http://localhost:4200/__cypress__/feature-flags/is-on/eg-frequent-buyer-program
Status: 404
cy:command
✔
get [data-cy=support-request-form_file-upload-1]
cy:command
✔
shadow
cy:command
✔
find input[type="file"]
cy:command
✔
selectFile Object{3}, {force: true}
cy:command
✘
wait @cloudinaryUpload
cy:xhr
➟
GET https://dev.caronsale.de/api/v1/auction/salesman/count-saved-searches?searches=9db4e364-5ff3-4bc0-af42-4be7a574d2af&searches=6e625d25-6657-414d-860e-6f41ba135213&type=active
2) "before each" hook for "should not require terms checkbox when no file is uploaded"
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/
Support Request Submitted
3) "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/
19 passing (2m)
3 failing
1) Support Request
Support Request Form
should allow deleting an uploaded file:
CypressError: Timed out retrying after 10000ms: `cy.wait()` timed out waiting `10000ms` for the 1st request to the route: `cloudinaryUpload`. No request ever occurred.
https://on.cypress.io/wait
at cypressErr (http://localhost:4200/__cypress/runner/cypress_runner.js:75898:18)
at Object.errByPath (http://localhost:4200/__cypress/runner/cypress_runner.js:75952:10)
at checkForXhr (http://localhost:4200/__cypress/runner/cypress_runner.js:135185:84)
at <unknown> (http://localhost:4200/__cypress/runner/cypress_runner.js:135211:28)
at tryCatcher (http://localhost:4200/__cypress/runner/cypress_runner.js:1807:23)
at Promise.attempt.Promise.try (http://localhost:4200/__cypress/runner/cypress_runner.js:4315:29)
at whenStable (http://localhost:4200/__cypress/runner/cypress_runner.js:143587:68)
at <unknown> (http://localhost:4200/__cypress/runner/cypress_runner.js:143528:14)
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:1701:18)
at Promise._fulfill (http://localhost:4200/__cypress/runner/cypress_runner.js:1645:18)
at <unknown> (http://localhost:4200/__cypress/runner/cypress_runner.js:5450:46)
From Your Spec Code:
at Context.eval (webpack:///../e2e/caronsale-frontend-web/support-request.spec.cy.ts:393:0)
2) Support Request
Support Request Form
"before each" hook for "should not require terms checkbox when no file is uploaded":
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)
3) 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 not require terms checkbox when no file is uploaded -- before each hook (f
ailed).png
-- should display success view after form submission -- before each hook (faile
d).png
────────────────────────────────────────────────────────────────────────────────────────────────────