1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2025-10-15 13:23:37 +02:00

Replace 'wait' with 'waitFor'

This commit is contained in:
Aleksandr Gumroian
2025-02-25 14:04:07 +01:00
parent 700b28c463
commit 326790d80d
7 changed files with 25 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
* Copyright (C) 2019-2025 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.
@@ -7,7 +7,7 @@
import React from "react";
import { act, fireEvent, render, waitForElement } from "customTestRender";
import { act, fireEvent, render, waitFor } from "customTestRender";
import mockAxios from "jest-mock-axios";
import WebSockets from "webSockets/WebSockets";
import ForisForm from "../components/ForisForm";
@@ -59,7 +59,7 @@ describe("useForm hook.", () => {
);
mockAxios.mockResponse({ field: "fetchedData" });
input = await waitForElement(() => getByTestId("test-input"));
input = await waitFor(() => getByTestId("test-input"));
form = container.firstChild.firstChild;
});