From b2d59f3b3ff45e244ce9e7abfb07a59b0df16ce4 Mon Sep 17 00:00:00 2001 From: Sampath Date: Mon, 6 Feb 2023 23:48:50 +0530 Subject: [PATCH] autoscale and manual radiobuutton fixes --- .../ThroughputInput/ThroughputInput.test.tsx | 4 +-- .../ThroughputInput/ThroughputInput.tsx | 4 +-- .../ThroughputInput.test.tsx.snap | 4 +-- src/Explorer/Panes/AddCollectionPanel.tsx | 4 +-- .../AddCollectionPanel.test.tsx.snap | 25 ++++++++++++++++++- 5 files changed, 32 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 420e23955..7adf8316f 100644 --- a/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap +++ b/src/Explorer/Panes/__snapshots__/AddCollectionPanel.test.tsx.snap @@ -234,6 +234,29 @@ exports[`AddCollectionPanel should render Default properly 1`] = ` type="text" value="" /> + + +