From ad1391f62304bc66dd78f3fdbbe9604fa126237a Mon Sep 17 00:00:00 2001 From: MokireddySampath <120497218+MokireddySampath@users.noreply.github.com> Date: Thu, 4 Jan 2024 19:34:14 +0530 Subject: [PATCH] visual and arialabel were different which has been changed as required and tests have been updated (#1685) --- .../Controls/ThroughputInput/ThroughputInput.test.tsx | 4 ++-- src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx | 4 ++-- .../__snapshots__/ThroughputInput.test.tsx.snap | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInput.test.tsx b/src/Explorer/Controls/ThroughputInput/ThroughputInput.test.tsx index 9229a3d50..d701ba4d9 100644 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInput.test.tsx +++ b/src/Explorer/Controls/ThroughputInput/ThroughputInput.test.tsx @@ -23,12 +23,12 @@ describe("ThroughputInput Pane", () => { }); it("should switch mode properly", () => { - wrapper.find('[aria-label="Manual database throughput"]').simulate("change"); + wrapper.find('[id="Manual-input"]').simulate("change"); expect(wrapper.find('[aria-label="Throughput header"]').at(0).text()).toBe( "Container throughput (400 - unlimited RU/s)", ); - wrapper.find('[aria-label="Autoscale database throughput"]').simulate("change"); + wrapper.find('[id="Autoscale-input"]').simulate("change"); expect(wrapper.find('[aria-label="Throughput header"]').at(0).text()).toBe("Container throughput (autoscale)"); }); }); diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx index 77fa8aaa0..07b105642 100644 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx +++ b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx @@ -189,7 +189,7 @@ export const ThroughputInput: FunctionComponent = ({ = ({