From 38de7923905dfe0c4b902d13b6b73c6a2c65b74d Mon Sep 17 00:00:00 2001 From: Aleksandr Gumroian Date: Thu, 12 Dec 2024 18:47:38 +0300 Subject: [PATCH] Update Snapshots --- src/bootstrap/__tests__/NumberInput.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bootstrap/__tests__/NumberInput.test.js b/src/bootstrap/__tests__/NumberInput.test.js index 6df7200..c0d89df 100644 --- a/src/bootstrap/__tests__/NumberInput.test.js +++ b/src/bootstrap/__tests__/NumberInput.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/) + * Copyright (C) 2019-2024 CZ.NIC z.s.p.o. (https://www.nic.cz/) * * This is free software, licensed under the GNU General Public License v3. * See /LICENSE for more information. @@ -32,7 +32,7 @@ describe("", () => { }); it("Increase number with button", async () => { - const increaseButton = getByLabelText(componentContainer, "Increase"); + const increaseButton = getByLabelText(componentContainer, /Increase/); fireEvent.mouseDown(increaseButton); await wait(() => expect(onChangeMock).toHaveBeenCalledWith({ target: { value: 2 } }) @@ -40,7 +40,7 @@ describe("", () => { }); it("Decrease number with button", async () => { - const decreaseButton = getByLabelText(componentContainer, "Decrease"); + const decreaseButton = getByLabelText(componentContainer, /Decrease/); fireEvent.mouseDown(decreaseButton); await wait(() => expect(onChangeMock).toHaveBeenCalledWith({ target: { value: 0 } })