/* * 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. */ import React from "react"; import Button from "bootstrap/Button"; import { fireEvent, getByText, queryByText, render, wait, } from "customTestRender"; import mockAxios from "jest-mock-axios"; import { mockJSONError } from "testUtils/network"; import { mockSetAlert } from "testUtils/alertContextMock"; import ActionButtonWithModal from "../ActionButtonWithModal/ActionButtonWithModal"; describe("", () => { let componentContainer; const ActionButton = (props) => ( ); beforeEach(() => { const { container } = render( <>