Migration to Lit Element #1479
Annotations
3 errors
|
build
Process completed with exit code 1.
|
|
[e2e (chromium)] tests/validation.e2e.test.tsx > Custom file validation > Sync file validators > should be called when cdnUrl or cdnUrlModifiers changed:
tests/validation.e2e.test.tsx#L440
AssertionError: expected last "vi.fn()" call to have been called with [ ObjectContaining{…}, Anything, …(1) ]
- Expected
+ Received
[
- ObjectContaining {
- "cdnUrlModifiers": "",
+ {
+ "cdnUrl": null,
+ "cdnUrlModifiers": null,
+ "errors": [],
+ "externalUrl": null,
+ "file": File {},
+ "fileInfo": null,
+ "fullPath": null,
+ "internalId": "uid-mj2ts5ge-2dmiwoj2b",
+ "isFailed": false,
+ "isImage": true,
+ "isRemoved": false,
+ "isSuccess": false,
+ "isUploading": false,
+ "isValidationPending": true,
+ "metadata": null,
+ "mimeType": "image/jpeg",
+ "name": "square.jpg",
+ "size": 1915,
+ "source": "js-api",
+ "status": "idle",
+ "uploadProgress": 0,
+ "uuid": null,
},
Anything,
Anything,
]
❯ tests/validation.e2e.test.tsx:440:9
Caused by: Caused by: Error: Matcher did not succeed in time.
❯ tests/validation.e2e.test.tsx:436:6
|
|
[e2e (chromium)] tests/validation.e2e.test.tsx > Custom file validation > Sync file validators > should be run multiple times during upload:
tests/validation.e2e.test.tsx#L424
AssertionError: expected "vi.fn()" to be called with arguments: [ ObjectContaining{…}, Anything, …(1) ]
Received:
1st vi.fn() call:
[
- ObjectContaining {
- "status": "success",
+ {
+ "cdnUrl": null,
+ "cdnUrlModifiers": null,
+ "errors": [],
+ "externalUrl": null,
+ "file": File {},
+ "fileInfo": null,
+ "fullPath": null,
+ "internalId": "uid-mj2trx7b-5t0cv4roz",
+ "isFailed": false,
+ "isImage": true,
+ "isRemoved": false,
+ "isSuccess": false,
+ "isUploading": false,
+ "isValidationPending": true,
+ "metadata": null,
+ "mimeType": "image/jpeg",
+ "name": "pixel.jpg",
+ "size": 283,
+ "source": "js-api",
+ "status": "idle",
+ "uploadProgress": 0,
+ "uuid": null,
+ },
+ UploaderPublicApi {
+ "_ctx": <uc-upload-ctx-provider
+ ctx-name="test-kjm4u6b3x7"
+ data-testid="uc-upload-ctx-provider"
+ uc-wgt-common=""
+ >
+ <!---->
+ </uc-upload-ctx-provider>,
+ "addFileFromCdnUrl": [Function anonymous],
+ "addFileFromObject": [Function anonymous],
+ "addFileFromUrl": [Function anonymous],
+ "addFileFromUuid": [Function anonymous],
+ "doneFlow": [Function anonymous],
+ "getCurrentActivity": [Function anonymous],
+ "initFlow": [Function anonymous],
+ "openSystemDialog": [Function anonymous],
+ "removeFileByInternalId": [Function anonymous],
+ "setCurrentActivity": [Function anonymous],
+ "setModalState": [Function anonymous],
+ "uploadAll": [Function anonymous],
},
- Anything,
- Anything,
+ {
+ "signal": AbortSignal {},
+ },
]
2nd vi.fn() call:
[
- ObjectContaining {
- "status": "success",
+ {
+ "cdnUrl": null,
+ "cdnUrlModifiers": null,
+ "errors": [],
+ "externalUrl": null,
+ "file": File {},
+ "fileInfo": null,
+ "fullPath": null,
+ "internalId": "uid-mj2trx7b-5t0cv4roz",
+ "isFailed": false,
+ "isImage": true,
+ "isRemoved": false,
+ "isSuccess": false,
+ "isUploading": false,
+ "isValidationPending": true,
+ "metadata": null,
+ "mimeType": "image/jpeg",
+ "name": "pixel.jpg",
+ "size": 283,
+ "source": "js-api",
+ "status": "idle",
+ "uploadProgress": 0,
+ "uuid": null,
+ },
+ UploaderPublicApi {
+ "_ctx": <uc-upload-ctx-provider
+ ctx-name="test-kjm4u6b3x7"
+ data-testid="uc-upload-ctx-provider"
+ uc-wgt-common=""
+ >
+ <!---->
+ </uc-upload-ctx-provider>,
+ "addFileFromCdnUrl": [Function anonymous],
+ "addFileFromObject": [Function anonymous],
+ "addFileFromUrl": [Function anonymous],
+ "addFileFromUuid": [Function anonymous],
+ "doneFlow": [Function anonymous],
+ "getCurrentActivity": [Function anonymous],
+ "initFlow": [Function anonymous],
+ "openSystemDialog": [Function anonymous],
+ "removeFileByInternalId": [Function anonymous],
+ "setCurrentActivity": [Function anonymous],
+ "setModalState": [Function anonymous],
+ "uploadAll": [Function anonymous],
},
- Anything,
- Anything,
+ {
+ "signal": AbortSignal {},
+ },
]
Number of calls: 2
❯ tests/validation.e2e.test.tsx:424:9
Caused by: Caused by: Error: Matcher did not succeed in time.
❯ tests/validation.e2e.test.tsx:420:6
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
e2e-tests
|
16.6 KB |
sha256:8e595b652b828ee5df7ae5a8b3f8101a1d70e0d16dd5527416c3cf84854e82c7
|
|