From f108ed4fbdad62eb8f129e9c27c2891f5f3a3961 Mon Sep 17 00:00:00 2001 From: vaidankarswapnil Date: Thu, 16 Sep 2021 22:49:50 +0530 Subject: [PATCH] Resolved test case issue --- .../Controls/ThroughputInput/ThroughputInput.test.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInput.test.tsx b/src/Explorer/Controls/ThroughputInput/ThroughputInput.test.tsx index 6995f240a..badccd259 100644 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInput.test.tsx +++ b/src/Explorer/Controls/ThroughputInput/ThroughputInput.test.tsx @@ -21,12 +21,10 @@ describe("ThroughputInput Pane", () => { }); it("should switch mode properly", () => { - wrapper.find('[aria-label="Manual mode"]').simulate("change"); - expect(wrapper.find('[aria-label="Throughput header"]').at(0).text()).toBe( - "Container throughput (400 - unlimited RU/s)" - ); + wrapper.find(".ms-ChoiceField-input").at(0).simulate("change"); + expect(wrapper.find("#throughPut").at(0).text()).toBe("Container throughput (autoscale)"); - wrapper.find('[aria-label="Autoscale mode"]').simulate("change"); - expect(wrapper.find('[aria-label="Throughput header"]').at(0).text()).toBe("Container throughput (autoscale)"); + wrapper.find(".ms-ChoiceField-input").at(1).simulate("change"); + expect(wrapper.find("#throughPut").at(0).text()).toBe("Container throughput (400 - unlimited RU/s)"); }); });