run tests with no throughput limit on the account

This commit is contained in:
Asier Isayas
2026-01-05 15:46:34 -05:00
parent 971ec56a04
commit f88b1d77ff

View File

@@ -49,20 +49,20 @@ test.describe("Autoscale throughput", () => {
); );
}); });
test("Update autoscale max throughput passed allowed limit", async () => { // test("Update autoscale max throughput passed allowed limit", async () => {
// Get soft allowed max throughput and remove commas // // Get soft allowed max throughput and remove commas
const softAllowedMaxThroughputString = await explorer.frame // const softAllowedMaxThroughputString = await explorer.frame
.getByTestId("soft-allowed-maximum-throughput") // .getByTestId("soft-allowed-maximum-throughput")
.innerText(); // .innerText();
const softAllowedMaxThroughput = Number(softAllowedMaxThroughputString.replace(/,/g, "")); // const softAllowedMaxThroughput = Number(softAllowedMaxThroughputString.replace(/,/g, ""));
// Try to set autoscale max throughput above allowed limit // // Try to set autoscale max throughput above allowed limit
await getThroughputInput(explorer, "autopilot").fill((softAllowedMaxThroughput * 10).toString()); // await getThroughputInput(explorer, "autopilot").fill((softAllowedMaxThroughput * 10).toString());
await expect(explorer.commandBarButton(CommandBarButton.Save)).toBeDisabled(); // await expect(explorer.commandBarButton(CommandBarButton.Save)).toBeDisabled();
await expect(getThroughputInputErrorMessage(explorer, "autopilot")).toContainText( // await expect(getThroughputInputErrorMessage(explorer, "autopilot")).toContainText(
"This update isn't possible because it would increase the total throughput", // "This update isn't possible because it would increase the total throughput",
); // );
}); // });
test("Update autoscale max throughput with invalid increment", async () => { test("Update autoscale max throughput with invalid increment", async () => {
// Try to set autoscale max throughput with invalid increment // Try to set autoscale max throughput with invalid increment
@@ -120,20 +120,20 @@ test.describe("Manual throughput", () => {
); );
}); });
test("Update manual throughput passed allowed limit", async () => { // test("Update manual throughput passed allowed limit", async () => {
// Get soft allowed max throughput and remove commas // // Get soft allowed max throughput and remove commas
const softAllowedMaxThroughputString = await explorer.frame // const softAllowedMaxThroughputString = await explorer.frame
.getByTestId("soft-allowed-maximum-throughput") // .getByTestId("soft-allowed-maximum-throughput")
.innerText(); // .innerText();
const softAllowedMaxThroughput = Number(softAllowedMaxThroughputString.replace(/,/g, "")); // const softAllowedMaxThroughput = Number(softAllowedMaxThroughputString.replace(/,/g, ""));
// Try to set manual throughput above allowed limit // // Try to set manual throughput above allowed limit
await getThroughputInput(explorer, "manual").fill((softAllowedMaxThroughput * 10).toString()); // await getThroughputInput(explorer, "manual").fill((softAllowedMaxThroughput * 10).toString());
await expect(explorer.commandBarButton(CommandBarButton.Save)).toBeDisabled(); // await expect(explorer.commandBarButton(CommandBarButton.Save)).toBeDisabled();
await expect(getThroughputInputErrorMessage(explorer, "manual")).toContainText( // await expect(getThroughputInputErrorMessage(explorer, "manual")).toContainText(
"This update isn't possible because it would increase the total throughput", // "This update isn't possible because it would increase the total throughput",
); // );
}); // });
}); });
// Helper methods // Helper methods