diff --git a/apps/deploy-web/tests/ui/configure-deployment-flow.spec.ts b/apps/deploy-web/tests/ui/configure-deployment-flow.spec.ts index 79cf5e012d..5679c56fac 100644 --- a/apps/deploy-web/tests/ui/configure-deployment-flow.spec.ts +++ b/apps/deploy-web/tests/ui/configure-deployment-flow.spec.ts @@ -25,9 +25,9 @@ test.describe("Configure deployment — request quotes flow", () => { await configure.requestQuotes(); // the created deployment's dseq is mirrored into the route segment - await page.waitForURL(/\/new-deployment\/configure\/\d+/, { timeout: 90_000 }); + await page.waitForURL(/\/new-deployment\/configure\/\d+/, { timeout: 15_000 }); - await expect(configure.lockBannerText().first()).toBeVisible({ timeout: 30_000 }); + await expect(configure.lockBannerText().first()).toBeVisible(); await expect(configure.cpuInput()).toBeDisabled(); await expect(configure.dockerImageInput()).toBeEnabled(); @@ -37,10 +37,9 @@ test.describe("Configure deployment — request quotes flow", () => { await test.step("cancel and edit closes the deployment and unlocks the pane", async () => { await configure.cancelAndEdit(); + await expect(configure.cancellingButton()).toBeVisible(); - // closing drops the dseq from the route - await page.waitForURL(url => !/\/new-deployment\/configure\/\d+/.test(url.pathname), { timeout: 90_000 }); - + await expect(configure.cancellingButton()).not.toBeVisible({ timeout: 15_000 }); await expect(configure.lockBannerText()).toHaveCount(0); await expect(configure.cpuInput()).toBeEnabled(); await expect(configure.requestQuotesButton()).toBeVisible(); diff --git a/apps/deploy-web/tests/ui/onboarding-picker-unlock-trial.spec.ts b/apps/deploy-web/tests/ui/onboarding-picker-unlock-trial.spec.ts index e817f29a22..2b11779323 100644 --- a/apps/deploy-web/tests/ui/onboarding-picker-unlock-trial.spec.ts +++ b/apps/deploy-web/tests/ui/onboarding-picker-unlock-trial.spec.ts @@ -51,9 +51,8 @@ test.describe("Onboarding picker — unlocking the gated LLM template via Add Cr await expect(addCreditsSheet.getDialog()).toBeHidden({ timeout: 30_000 }); }); - await test.step("the LLM template CTA unlocks to 'Deploy now'", async () => { - await expect(onboardingPickerPage.getLlmChatbotCta()).toHaveText(/deploy now/i, { timeout: 30_000 }); - await expect(onboardingPickerPage.getLlmChatbotCta()).toBeEnabled(); + await test.step("the LLM template starts deploying", async () => { + await expect(page.getByText("Deploying")).toBeVisible(); }); }); }); diff --git a/apps/deploy-web/tests/ui/pages/ConfigureDeploymentPage.ts b/apps/deploy-web/tests/ui/pages/ConfigureDeploymentPage.ts index 319670af43..d880474530 100644 --- a/apps/deploy-web/tests/ui/pages/ConfigureDeploymentPage.ts +++ b/apps/deploy-web/tests/ui/pages/ConfigureDeploymentPage.ts @@ -52,6 +52,10 @@ export class ConfigureDeploymentPage { return this.page.getByRole("button", { name: "Request quotes" }); } + cancellingButton() { + return this.page.getByRole("button", { name: "Cancelling", exact: true }); + } + /** The lock banner copy shown in each spec pane while quotes are active. */ lockBannerText() { return this.page.getByText("Changing a locked setting needs new quotes.");