diff --git a/src/Explorer/Panes/PanelInfoErrorComponent.tsx b/src/Explorer/Panes/PanelInfoErrorComponent.tsx index 6467521ec..92934c28b 100644 --- a/src/Explorer/Panes/PanelInfoErrorComponent.tsx +++ b/src/Explorer/Panes/PanelInfoErrorComponent.tsx @@ -32,14 +32,8 @@ export const PanelInfoErrorComponent: React.FunctionComponent {icon} - - + + {message} {link && linkText && ( diff --git a/src/Explorer/Panes/RightPaneForm/RightPaneForm.test.tsx b/src/Explorer/Panes/RightPaneForm/RightPaneForm.test.tsx index 6b86b279b..e2ce75787 100644 --- a/src/Explorer/Panes/RightPaneForm/RightPaneForm.test.tsx +++ b/src/Explorer/Panes/RightPaneForm/RightPaneForm.test.tsx @@ -1,5 +1,5 @@ import { fireEvent, render, screen } from "@testing-library/react"; -import { mount, ReactWrapper } from "enzyme"; +import { ReactWrapper, mount } from "enzyme"; import React from "react"; import { RightPaneForm } from "./RightPaneForm"; @@ -34,6 +34,6 @@ describe("Right Pane Form", () => { it("should render error in header", () => { render(); expect(screen.getByLabelText("error")).toBeDefined(); - expect(screen.getByRole("alert").innerHTML).toEqual("file already Exist"); + expect(screen.getByRole("alert").innerHTML).toContain("file already Exist"); }); }); diff --git a/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap b/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap index 9d4fd78eb..7687222df 100644 --- a/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap +++ b/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap @@ -323,21 +323,19 @@ exports[`Delete Database Confirmation Pane Should call delete database 1`] = ` Warning! The action you are about to take cannot be undone. Continuing will permanently delete this resource and all of its children resources.