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 (5178ms)
✓ should navigate to Buyer Cockpit when clicking cancel button (2584ms)
tive/vulkan/VulkanError.cpp:88)
at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)
✓ should submit support request with "Other" topic and simple description (3516ms)
✓ should display validation errors when submitting empty form (2195ms)
✓ should enforce character limit on description field when typing (18812ms)
✓ should enforce character limit on description field when pasting text (2469ms)
✓ should display validation error for reason when topic requires it (2726ms)
✓ should display validation error for Description field when topic requires it (3258ms)
✓ should display validation error for Auction ID field when topic requires it (3094ms)
✓ should display validation error for Auction ID field when it has wrong length (4025ms)
✓ should mark Auction ID field as invalid when auction does not exist (3102ms)
✓ should display validation error for Missing Documents when required (3580ms)
✓ should not require auction ID for "Other" topic (2943ms)
✓ should show select documents field when topic is "Vehicle Documents" and reason is "Missing Vehicle Documents" (2892ms)
✓ should hide select documents field when reason is changed to something other than "Missing Vehicle Documents" (3131ms)
✓ should submit support request with "Vehicle Documents" topic and missing documents selected (4402ms)
✓ should display file upload components (3432ms)
✓ should upload a file and show it in the upload component (2821ms)
✓ should require terms and conditions checkbox when file is uploaded (3670ms)
✓ should submit form successfully when file is uploaded and terms checkbox is checked (3394ms)
✓ should not submit form when file is uploaded and terms checkbox is not checked (3050ms)
✓ should allow deleting an uploaded file (2525ms)
✓ should not require terms checkbox when no file is uploaded (3074ms)
1) should upload multiple files
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: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/
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=1770980968106
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: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:command
✔
get body
cy:intercept
➟
Method: POST
Matcher: "**/api.cloudinary.com/v1_1/**/upload"
Mocked Response: req => {
// respond with different URLs based on which upload this is
const isSecondUpload = req.body?.includes(TEST_UPLOADED_FILE_2);
req.reply({
statusCode: 200,
body: {
secure_url: isSecondUpload ? TEST_CLOUDINARY_URL_2 : TEST_CLOUDINARY_URL_1,
public_id: isSecondUpload ? TEST_CLOUDINARY_ID_2 : TEST_CLOUDINARY_ID_1,
},
});
}
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: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
Status: 200
cy:xhr
➟
POST https://dev.caronsale.de/api/v1/media/signature
Status: 200
cy:xhr
➟
(cloudinaryUpload) STUBBED POST https://api.cloudinary.com/v1_1/castle-tech-gmbh-dev/auto/upload
Status: 200
cy:command
✔
get [data-cy=support-request-form_file-upload-2]
cy:command
✔
shadow
cy:command
✘
find input[type="file"]
Support Request Submitted
✓ should display success view after form submission (4023ms)
✓ should return to Support Request Form when clicking back button (3159ms)
✓ should navigate to Buyer Cockpit when clicking done button (3336ms)
26 passing (2m)
1 failing
1) Support Request
Support Request Form
should upload multiple files:
AssertionError: Timed out retrying after 10000ms: Expected to find element: `input[type="file"]`, but never found it. Queried from:
> cy.get([data-cy=support-request-form_file-upload-2], ).shadow()
at uploadEnzoFile (webpack:///../e2e/caronsale-frontend-web/utils/e2e-enzo-utils.ts:53:0)
at Context.eval (webpack:///../e2e/caronsale-frontend-web/support-request.spec.cy.ts:515:26)
────────────────────────────────────────────────────────────────────────────────────────────────────