diff --git a/src/Explorer/Panes/PanelInfoErrorComponent.tsx b/src/Explorer/Panes/PanelInfoErrorComponent.tsx index be8a8b303..409f7cd43 100644 --- a/src/Explorer/Panes/PanelInfoErrorComponent.tsx +++ b/src/Explorer/Panes/PanelInfoErrorComponent.tsx @@ -33,7 +33,13 @@ 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 f35df1caa..6b86b279b 100644 --- a/src/Explorer/Panes/RightPaneForm/RightPaneForm.test.tsx +++ b/src/Explorer/Panes/RightPaneForm/RightPaneForm.test.tsx @@ -34,6 +34,6 @@ describe("Right Pane Form", () => { it("should render error in header", () => { render(); expect(screen.getByLabelText("error")).toBeDefined(); - expect(screen.getByLabelText("message").innerHTML).toEqual("file already Exist"); + expect(screen.getByRole("alert").innerHTML).toEqual("file already Exist"); }); }); diff --git a/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap b/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap index 9a2b6ef16..5613a797e 100644 --- a/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap +++ b/src/Explorer/Panes/__snapshots__/DeleteDatabaseConfirmationPanel.test.tsx.snap @@ -327,13 +327,17 @@ exports[`Delete Database Confirmation Pane Should call delete database 1`] = ` key=".0:$.1" > Warning! The action you are about to take cannot be undone. Continuing will permanently delete this resource and all of its children resources. diff --git a/src/Platform/Hosted/extractFeatures.ts b/src/Platform/Hosted/extractFeatures.ts index 1313aa834..8342d9637 100644 --- a/src/Platform/Hosted/extractFeatures.ts +++ b/src/Platform/Hosted/extractFeatures.ts @@ -85,7 +85,7 @@ export function extractFeatures(given = new URLSearchParams(window.location.sear }; } -export function hasFlag(flags: string, desiredFlag: string): boolean { +export function hasFlag(flags: string | undefined, desiredFlag: string | undefined): boolean { if (!flags || !desiredFlag) { return false; }