refresh databases in test instead of product code

This commit is contained in:
Asier Isayas
2025-12-30 16:59:17 -05:00
parent 2758e6ac72
commit 87d5f84f2e
4 changed files with 16 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
import { expect, Page, test } from "@playwright/test";
import { DataExplorer, ONE_MINUTE_MS, TestAccount } from "../../fx";
import { DataExplorer, TestAccount } from "../../fx";
import { createTestSQLContainer, TestContainerContext } from "../../testData";
test.describe("Change Partition Key", () => {
@@ -62,7 +62,7 @@ test.describe("Change Partition Key", () => {
await changePkPanel.getByTestId("Panel/OkButton").click();
await pageInstance.waitForLoadState("networkidle");
await expect(changePkPanel).not.toBeVisible({ timeout: 5 * ONE_MINUTE_MS });
await expect(changePkPanel).not.toBeVisible({ timeout: 60 * 1000 });
// Verify partition key change job
const jobText = explorer.frame.getByText(/Partition key change job/);