Skip to content

Refactor ModalLink (move Axios call to modalStack.js) #2

Refactor ModalLink (move Axios call to modalStack.js)

Refactor ModalLink (move Axios call to modalStack.js) #2

Triggered via push September 28, 2024 21:16
Status Failure
Total duration 40s
Artifacts

tests.yml

on: push
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 4 warnings
tests/modalStack.test.js > modalStack > Modal > should reload modal props with correct headers: vue/tests/modalStack.test.js#L139
AssertionError: expected "wrap" to be called with arguments: [ '/test', { headers: { …(4) } } ] Received: 1st wrap call: Array [ "/test", Object { "headers": Object { + "Accept": "text/html, application/xhtml+xml", "X-Inertia": true, "X-Inertia-Partial-Component": "TestComponent", "X-Inertia-Partial-Data": "test,another", "X-Inertia-Version": "1", }, }, ] Number of calls: 1 ❯ tests/modalStack.test.js:139:31
tests/modalStack.test.js > modalStack > Modal > should reload modal props with "only" option: vue/tests/modalStack.test.js#L167
AssertionError: expected "wrap" to be called with arguments: [ '/test', { headers: { …(4) } } ] Received: 1st wrap call: Array [ "/test", Object { "headers": Object { + "Accept": "text/html, application/xhtml+xml", "X-Inertia": true, "X-Inertia-Partial-Component": "TestComponent", "X-Inertia-Partial-Data": "test", "X-Inertia-Version": "1", }, }, ] Number of calls: 1 ❯ tests/modalStack.test.js:167:31
tests/modalStack.test.js > modalStack > Modal > should reload modal props with "except" option: vue/tests/modalStack.test.js#L195
AssertionError: expected "wrap" to be called with arguments: [ '/test', { headers: { …(4) } } ] Received: 1st wrap call: Array [ "/test", Object { "headers": Object { + "Accept": "text/html, application/xhtml+xml", "X-Inertia": true, "X-Inertia-Partial-Component": "TestComponent", "X-Inertia-Partial-Data": "test,third", "X-Inertia-Version": "1", }, }, ] Number of calls: 1 ❯ tests/modalStack.test.js:195:31
Tests (vue)
Process completed with exit code 1.
Tests (vue)
No files were found with the provided path: demo-app/tests/Browser/screenshots. No artifacts will be uploaded.
Tests (vue)
No files were found with the provided path: demo-app/storage/logs. No artifacts will be uploaded.
Tests (vue)
No files were found with the provided path: demo-app/tests/Browser/__snapshots__. No artifacts will be uploaded.
Tests (vue)
No files were found with the provided path: demo-app/tests/Browser/console. No artifacts will be uploaded.