Skip to content

Commit d57833b

Browse files
committed
Change locator to use .summary
1 parent ad61871 commit d57833b

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

site/e2e/tests/deployment/workspaceProxies.spec.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,12 @@ test("default proxy is online", async ({ page }) => {
1818
`table.MuiTable-root tr[data-testid="primary"]`,
1919
);
2020

21-
const workspaceProxyName = workspaceProxyPrimary.locator(".name");
22-
const workspaceProxyURL = workspaceProxyPrimary.locator(".url");
23-
const workspaceProxyStatus = workspaceProxyPrimary.locator(".status");
21+
const summary = workspaceProxyPrimary.locator(".summary");
22+
const status = workspaceProxyPrimary.locator(".status");
2423

25-
await expect(workspaceProxyName).toContainText("Default");
26-
await expect(workspaceProxyURL).toContainText(
27-
`http://localhost:${coderPort}`,
28-
);
29-
await expect(workspaceProxyStatus).toContainText("Healthy");
24+
await expect(summary).toContainText("Default");
25+
await expect(summary).toContainText(`http://localhost:${coderPort}`);
26+
await expect(status).toContainText("Healthy");
3027
});
3128

3229
test("custom proxy is online", async ({ page }) => {

0 commit comments

Comments
 (0)