From 99af4acca453a96fd33b02b36d839e4cea5537f2 Mon Sep 17 00:00:00 2001 From: MokireddySampath <120497218+MokireddySampath@users.noreply.github.com> Date: Tue, 7 Feb 2023 11:48:45 +0530 Subject: [PATCH] autoscale and manual radiobuutton fixes (#1387) --- .../Controls/ThroughputInput/ThroughputInput.test.tsx | 4 ++-- src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx | 4 ++-- .../__snapshots__/ThroughputInput.test.tsx.snap | 4 ++-- src/Explorer/Panes/AddCollectionPanel.tsx | 4 ++-- .../Panes/__snapshots__/AddCollectionPanel.test.tsx.snap | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInput.test.tsx b/src/Explorer/Controls/ThroughputInput/ThroughputInput.test.tsx index ef3281801..4dc81a97d 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 mode"]').simulate("change"); + wrapper.find('[aria-label="Manual database throughput"]').simulate("change"); expect(wrapper.find('[aria-label="Throughput header"]').at(0).text()).toBe( "Container throughput (400 - unlimited RU/s)" ); - wrapper.find('[aria-label="Autoscale mode"]').simulate("change"); + wrapper.find('[aria-label="Autoscale database throughput"]').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 c4b3d936c..d86b0414f 100644 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx +++ b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx @@ -188,7 +188,7 @@ export const ThroughputInput: FunctionComponent = ({ = ({ diff --git a/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap b/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap index 4544d086b..7adf8316f 100644 --- a/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap +++ b/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap @@ -331,7 +331,7 @@ exports[`AddCollectionPanel should render Default properly 1`] = ` directionalHint={4} >