From 4ec6e7b8cce93712fe3cc5cc263565187cc3eaa8 Mon Sep 17 00:00:00 2001 From: MokireddySampath <120497218+MokireddySampath@users.noreply.github.com> Date: Wed, 22 Nov 2023 00:08:17 +0530 Subject: [PATCH] aria posinset has been removed, since it is not an attribute that is supported by the HTML elements used (#1547) --- .../TableQuerySelectPanel/TableQuerySelectPanel.test.tsx | 1 - .../Tables/TableQuerySelectPanel/TableQuerySelectPanel.tsx | 6 ++---- .../__snapshots__/TableQuerySelectPanel.test.tsx.snap | 6 ------ 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/Explorer/Panes/Tables/TableQuerySelectPanel/TableQuerySelectPanel.test.tsx b/src/Explorer/Panes/Tables/TableQuerySelectPanel/TableQuerySelectPanel.test.tsx index e79299080..046586a50 100644 --- a/src/Explorer/Panes/Tables/TableQuerySelectPanel/TableQuerySelectPanel.test.tsx +++ b/src/Explorer/Panes/Tables/TableQuerySelectPanel/TableQuerySelectPanel.test.tsx @@ -29,7 +29,6 @@ describe("Table query select Panel", () => { it("Should checked availableCheckbox by default", () => { const wrapper = mount(); expect(wrapper.find("#availableCheckbox").first().props()).toEqual({ - ariaPositionInSet: 0, id: "availableCheckbox", label: "Available Columns", checked: true, diff --git a/src/Explorer/Panes/Tables/TableQuerySelectPanel/TableQuerySelectPanel.tsx b/src/Explorer/Panes/Tables/TableQuerySelectPanel/TableQuerySelectPanel.tsx index 1b037adda..14d90f5eb 100644 --- a/src/Explorer/Panes/Tables/TableQuerySelectPanel/TableQuerySelectPanel.tsx +++ b/src/Explorer/Panes/Tables/TableQuerySelectPanel/TableQuerySelectPanel.tsx @@ -1,7 +1,7 @@ import { Checkbox, Text } from "@fluentui/react"; import React, { FunctionComponent, useEffect, useState } from "react"; -import { useSidePanel } from "../../../../hooks/useSidePanel"; import { userContext } from "../../../../UserContext"; +import { useSidePanel } from "../../../../hooks/useSidePanel"; import * as Constants from "../../../Tables/Constants"; import QueryViewModel from "../../../Tables/QueryBuilder/QueryViewModel"; import { RightPaneForm, RightPaneFormProps } from "../../RightPaneForm/RightPaneForm"; @@ -128,9 +128,8 @@ export const TableQuerySelectPanel: FunctionComponent - {columnOptions.map((column, index) => { + {columnOptions.map((column) => { return ( ); })} diff --git a/src/Explorer/Panes/Tables/TableQuerySelectPanel/__snapshots__/TableQuerySelectPanel.test.tsx.snap b/src/Explorer/Panes/Tables/TableQuerySelectPanel/__snapshots__/TableQuerySelectPanel.test.tsx.snap index ad7c2346c..c3db51210 100644 --- a/src/Explorer/Panes/Tables/TableQuerySelectPanel/__snapshots__/TableQuerySelectPanel.test.tsx.snap +++ b/src/Explorer/Panes/Tables/TableQuerySelectPanel/__snapshots__/TableQuerySelectPanel.test.tsx.snap @@ -37,14 +37,12 @@ exports[`Table query select Panel should render Default properly 1`] = ` className="column-select-view" >