mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-29 21:14:32 +01:00
Resolved test case issue
This commit is contained in:
parent
74095b6bc4
commit
f108ed4fbd
@ -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)");
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user