We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent371a2e1 commit85ff8e0Copy full SHA for 85ff8e0
site/e2e/helpers.ts
@@ -425,7 +425,9 @@ export const startAgentWithCommand = async (
425
);
426
});
427
428
-awaitpage.getByTestId("agent-status-ready").waitFor({state:"visible"});
+awaitpage
429
+.getByTestId("agent-status-ready")
430
+.waitFor({state:"visible",timeout:45_000});
431
returncp;
432
};
433
@@ -928,7 +930,7 @@ export async function openTerminalWindow(
928
930
):Promise<Page>{
929
931
// Wait for the web terminal to open in a new tab
932
constpagePromise=context.waitForEvent("page");
-awaitpage.getByTestId("terminal").click();
933
+awaitpage.getByTestId("terminal").click({timeout:60_000});
934
constterminal=awaitpagePromise;
935
awaitterminal.waitForLoadState("domcontentloaded");
936
site/e2e/playwright.config.ts
@@ -65,16 +65,12 @@ export default defineConfig({
65
testMatch:/.*\.spec\.ts/,
66
dependencies:["testsSetup"],
67
use:{ storageState},
68
-timeout:50_000,
+timeout:30_000,
69
},
70
],
71
reporter:[["./reporter.ts"]],
72
use:{
73
-// It'd be very nice to add this, but there are some tests that need
74
-// tweaking to make it work consistently (notably, ones that wait for agent
75
-// stats on the workspace page. The default is like 50 seconds, which is
76
-// way too long and makes it painful to wait for test runs in CI.
77
-// actionTimeout: 5000, // 5 seconds
+actionTimeout:5000,
78
baseURL:`http://localhost:${coderPort}`,
79
video:"retain-on-failure",
80
...(wsEndpoint
site/e2e/tests/app.spec.ts
@@ -13,6 +13,8 @@ import { beforeCoderTest } from "../hooks";
13
test.beforeEach(({ page})=>beforeCoderTest(page));
14
15
test("app",async({ context, page})=>{
16
+test.setTimeout(75_000);
17
+
18
constappContent="Hello World";
19
consttoken=randomUUID();
20
constsrv=http
@@ -56,7 +58,7 @@ test("app", async ({ context, page }) => {
56
58
57
59
60
-awaitpage.getByText(appName).click();
61
+awaitpage.getByText(appName).click({timeout:60_000});
62
constapp=awaitpagePromise;
63
awaitapp.waitForLoadState("domcontentloaded");
64
awaitapp.getByText(appContent).isVisible();
site/e2e/tests/outdatedAgent.spec.ts
@@ -17,7 +17,7 @@ const agentVersion = "v2.12.1";
test(`ssh with agent${agentVersion}`,async({ page})=>{
-test.setTimeout(40_000);// This is a slow test, 20s may not be enough on Mac.
+test.setTimeout(60_000);
21
22
23
consttemplate=awaitcreateTemplate(page,{
site/e2e/tests/outdatedCLI.spec.ts
@@ -17,6 +17,8 @@ const clientVersion = "v2.8.0";
test(`ssh with client${clientVersion}`,async({ page})=>{
24
apply:[
site/e2e/tests/webTerminal.spec.ts
@@ -12,6 +12,8 @@ import { beforeCoderTest } from "../hooks";
12
test("web terminal",async({ context, page})=>{