chore(deps): update dependency @testing-library/user-event to v14 (#4617)

* chore(deps): update dependency @testing-library/user-event to v14

* fix test

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
This commit is contained in:
renovate[bot] 2023-06-22 10:26:43 +01:00 committed by GitHub
parent 2922e512dd
commit d0f38c528f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 25 deletions

View File

@ -35,7 +35,7 @@ describe("Textbox", () => {
});
test("changing the text should update the value", async () => {
const { component, getByLabelText, getByDisplayValue } = render(Textbox, {
const { component, getByDisplayValue } = render(Textbox, {
show_label: true,
max_lines: 10,
loading_status,
@ -51,14 +51,11 @@ describe("Textbox", () => {
component.$on("change", mock);
item.focus();
event.keyboard("some text");
// wait for debounce
await wait(300);
await event.keyboard("some text");
assert.equal(item.value, "hi some text");
assert.equal(component.value, "hi some text");
assert.equal(mock.callCount, 1);
assert.equal(mock.calls[0][0].detail, "hi some text");
assert.equal(mock.callCount, 9);
assert.equal(mock.calls[8][0].detail, "hi some text");
});
});

View File

@ -40,7 +40,7 @@
"@testing-library/dom": "^9.0.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/svelte": "^3.1.0",
"@testing-library/user-event": "^13.5.0",
"@testing-library/user-event": "^14.0.0",
"autoprefixer": "^10.4.4",
"babylonjs": "^5.17.1",
"babylonjs-loaders": "^5.17.1",

View File

@ -36,8 +36,8 @@ importers:
specifier: ^3.1.0
version: 3.1.0(svelte@3.59.1)
'@testing-library/user-event':
specifier: ^13.5.0
version: 13.5.0(@testing-library/dom@9.0.0)
specifier: ^14.0.0
version: 14.0.0(@testing-library/dom@9.0.0)
autoprefixer:
specifier: ^10.4.4
version: 10.4.4(postcss@8.4.6)
@ -843,13 +843,6 @@ packages:
regenerator-runtime: 0.13.11
dev: false
/@babel/runtime@7.17.7:
resolution: {integrity: sha512-L6rvG9GDxaLgFjg41K+5Yv9OMrU98sWe+Ykmc6FDJW/+vYZMhdOMKkISgzptMaERHvS2Y2lw9MDRm2gHhlQQoA==}
engines: {node: '>=6.9.0'}
dependencies:
regenerator-runtime: 0.13.9
dev: false
/@babel/runtime@7.21.0:
resolution: {integrity: sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==}
engines: {node: '>=6.9.0'}
@ -2021,13 +2014,12 @@ packages:
svelte: 3.59.1
dev: false
/@testing-library/user-event@13.5.0(@testing-library/dom@9.0.0):
resolution: {integrity: sha512-5Kwtbo3Y/NowpkbRuSepbyMFkZmHgD+vPzYB/RJ4oxt5Gj/avFFBYjhw27cqSVPVw/3a67NK1PbiIr9k4Gwmdg==}
engines: {node: '>=10', npm: '>=6'}
/@testing-library/user-event@14.0.0(@testing-library/dom@9.0.0):
resolution: {integrity: sha512-hZhjNrle/DMi1ziHwHy8LS0fYJtf+cID7fuG5+4h+Bk83xQaRDQT/DlqfL4hJYw3mxW6KTIxoODrhGnhqJebdQ==}
engines: {node: '>=12', npm: '>=6'}
peerDependencies:
'@testing-library/dom': '>=7.21.4'
dependencies:
'@babel/runtime': 7.17.7
'@testing-library/dom': 9.0.0
dev: false
@ -5691,10 +5683,6 @@ packages:
resolution: {integrity: sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==}
dev: false
/regenerator-runtime@0.13.9:
resolution: {integrity: sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==}
dev: false
/regexp.prototype.flags@1.4.3:
resolution: {integrity: sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==}
engines: {node: '>= 0.4'}