Resolved test case issue

This commit is contained in:
vaidankarswapnil 2021-09-16 22:49:50 +05:30
parent 74095b6bc4
commit f108ed4fbd

View File

@ -21,12 +21,10 @@ describe("ThroughputInput Pane", () => {
}); });
it("should switch mode properly", () => { it("should switch mode properly", () => {
wrapper.find('[aria-label="Manual mode"]').simulate("change"); wrapper.find(".ms-ChoiceField-input").at(0).simulate("change");
expect(wrapper.find('[aria-label="Throughput header"]').at(0).text()).toBe( expect(wrapper.find("#throughPut").at(0).text()).toBe("Container throughput (autoscale)");
"Container throughput (400 - unlimited RU/s)"
);
wrapper.find('[aria-label="Autoscale mode"]').simulate("change"); wrapper.find(".ms-ChoiceField-input").at(1).simulate("change");
expect(wrapper.find('[aria-label="Throughput header"]').at(0).text()).toBe("Container throughput (autoscale)"); expect(wrapper.find("#throughPut").at(0).text()).toBe("Container throughput (400 - unlimited RU/s)");
}); });
}); });