From 0c009caea61dcf242e755a96c4b9300c13809bc3 Mon Sep 17 00:00:00 2001 From: Steve Faulkner Date: Wed, 5 May 2021 19:15:26 -0500 Subject: [PATCH] Fix test --- src/Explorer/Controls/ThroughputInput/ThroughputInput.test.tsx | 2 +- src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx | 2 +- .../__snapshots__/ThroughputInput.test.tsx.snap | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInput.test.tsx b/src/Explorer/Controls/ThroughputInput/ThroughputInput.test.tsx index e1dca0d52..9a4a7f167 100644 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInput.test.tsx +++ b/src/Explorer/Controls/ThroughputInput/ThroughputInput.test.tsx @@ -22,7 +22,7 @@ describe("ThroughputInput Pane", () => { it("test Autoscale Mode select", () => { wrapper.setProps({ isAutoscaleSelected: true }); - expect(wrapper.find('[data-testid="ruDescription"]').at(0).text()).toContain( + expect(wrapper.find('[data-testid="ruDescription"]').at(0).text()).toBe( "Estimate your required RU/s with capacity calculator." ); expect(wrapper.find('[data-testid="maxRUDescription"]').at(0).text()).toContain("Max RU/s"); diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx index ea50e1bc0..355839eed 100644 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx +++ b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx @@ -126,7 +126,7 @@ export const ThroughputInput: FunctionComponent = ({ {isAutoscaleSelected && ( - Estimate your required RU/s with  + Estimate your required RU/s with{" "} capacity calculator diff --git a/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap b/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap index b566abe3b..1a8c31086 100644 --- a/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap +++ b/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap @@ -2461,7 +2461,8 @@ exports[`ThroughputInput Pane should render Default properly 1`] = ` className="css-54" data-testid="ruDescription" > - Estimate your required RU/s with  + Estimate your required RU/s with +