From 88c1ee6d522ae32ed60dfe50e16b4c67f4827f6a Mon Sep 17 00:00:00 2001 From: Bruno Quaresma Date: Thu, 16 Nov 2023 18:27:51 -0300 Subject: [PATCH] chore(site): increase stop workspace timeout (#10742) --- site/e2e/helpers.ts | 3 ++- site/e2e/playwright.config.ts | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/site/e2e/helpers.ts b/site/e2e/helpers.ts index 1e54d84b80..942aa6962e 100644 --- a/site/e2e/helpers.ts +++ b/site/e2e/helpers.ts @@ -16,7 +16,7 @@ import { RichParameter, } from "./provisionerGenerated"; import { prometheusPort, pprofPort } from "./constants"; -import { port } from "./playwright.config"; +import { port, TEST_TIMEOUT } from "./playwright.config"; import * as ssh from "ssh2"; import { Duplex } from "stream"; import { WorkspaceBuildParameter } from "api/typesGenerated"; @@ -197,6 +197,7 @@ export const stopWorkspace = async (page: Page, workspaceName: string) => { "span[data-testid='build-status'] >> text=Stopped", { state: "visible", + timeout: TEST_TIMEOUT * 2, }, ); }; diff --git a/site/e2e/playwright.config.ts b/site/e2e/playwright.config.ts index 2cf0b7a494..7d9c920257 100644 --- a/site/e2e/playwright.config.ts +++ b/site/e2e/playwright.config.ts @@ -12,6 +12,8 @@ const coderMain = path.join(__dirname, "../../enterprise/cmd/coder"); export const STORAGE_STATE = path.join(__dirname, ".auth.json"); +export const TEST_TIMEOUT = 60_000; + const localURL = (port: number, path: string): string => { return `http://localhost:${port}${path}`; }; @@ -29,7 +31,7 @@ export default defineConfig({ use: { storageState: STORAGE_STATE, }, - timeout: 60000, + timeout: TEST_TIMEOUT, }, ], reporter: [["./reporter.ts"]],