From b949f60c2a461e91cebb46eb27f12c2fd9ec2828 Mon Sep 17 00:00:00 2001 From: MokireddySampath <120497218+MokireddySampath@users.noreply.github.com> Date: Mon, 23 Oct 2023 18:04:59 +0530 Subject: [PATCH] Defect2271490 (#1474) * arialabel has been added to close button of invitational youtube video * heading role has been addedd and tag has been changed to h1 * outline has been restored to choose columns link in entities page * header text color changed to meet luminosity ratio requirement * capacity calculator link has been added with underline on focus * add property is readout twice while using screenreader * arialabel added to the add property button * screenreader content changed to announce the entire alert * alert message is partially readout on error * Update fulldatatables.less * Update queryBuilder.less * Update TableEntity.tsx * Update ThroughputInput.less * Update ThroughputInput.tsx * Update ThroughputInput.test.tsx.snap * Update NewVertexComponent.tsx * Update PanelInfoErrorComponent.tsx * Update AddTableEntityPanel.tsx * Update AddTableEntityPanel.test.tsx.snap * Update SplashScreen.tsx * Update QuickstartCarousel.tsx * Update RightPaneForm.tsx * Update fulldatatables.less --- src/Explorer/Panes/PanelInfoErrorComponent.tsx | 10 ++-------- .../Panes/RightPaneForm/RightPaneForm.test.tsx | 4 ++-- .../DeleteDatabaseConfirmationPanel.test.tsx.snap | 6 ++---- 3 files changed, 6 insertions(+), 14 deletions(-) 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.