MCPcopy Index your code
hub / github.com/coder/coder / stopWorkspace

Function stopWorkspace

site/e2e/helpers.ts:406–417  ·  view source on GitHub ↗
(page: Page, workspaceName: string)

Source from the content-addressed store, hash-verified

404};
405
406export const stopWorkspace = async (page: Page, workspaceName: string) => {
407 const user = currentUser(page);
408 await page.goto(`/@${user.username}/${workspaceName}`, {
409 waitUntil: "domcontentloaded",
410 });
411
412 await page.getByTestId("workspace-stop-button").click();
413
414 await page.waitForSelector("text=Workspace status: Stopped", {
415 state: "visible",
416 });
417};
418
419export const startWorkspaceWithEphemeralParameters = async (
420 page: Page,

Callers 5

app.spec.tsFile · 0.90

Calls 1

currentUserFunction · 0.85

Tested by

no test coverage detected