Skip to content

Commit bc9ea61

Browse files
authored
ci: disable enterprise e2e tests temporarily (coder#12874)
1 parent 90efa1b commit bc9ea61

File tree

3 files changed

+24
-20
lines changed

3 files changed

+24
-20
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -478,13 +478,6 @@ jobs:
478478
DEBUG: pw:api
479479
working-directory: site
480480

481-
# Run all of the tests with an enterprise license
482-
- run: pnpm playwright:test --forbid-only --workers 1
483-
env:
484-
DEBUG: pw:api
485-
CODER_E2E_ENTERPRISE_LICENSE: ${{ secrets.CODER_E2E_ENTERPRISE_LICENSE }}
486-
working-directory: site
487-
488481
- name: Upload Playwright Failed Tests
489482
if: always() && github.actor != 'dependabot[bot]' && runner.os == 'Linux' && !github.event.pull_request.head.repo.fork
490483
uses: actions/upload-artifact@v4

site/e2e/playwright.config.ts

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import { defineConfig } from "@playwright/test";
22
import * as path from "path";
3-
import { coderMain, coderPort, coderdPProfPort, gitAuth } from "./constants";
3+
import {
4+
coderMain,
5+
coderPort,
6+
coderdPProfPort,
7+
enterpriseLicense,
8+
gitAuth,
9+
} from "./constants";
410

511
export const wsEndpoint = process.env.CODER_E2E_WS_ENDPOINT;
612

@@ -43,17 +49,22 @@ export default defineConfig({
4349
},
4450
webServer: {
4551
url: `http://localhost:${coderPort}/api/v2/deployment/config`,
46-
command:
47-
`go run -tags embed ${coderMain} server ` +
48-
`--global-config $(mktemp -d -t e2e-XXXXXXXXXX) ` +
49-
`--access-url=http://localhost:${coderPort} ` +
50-
`--http-address=localhost:${coderPort} ` +
51-
`--in-memory --telemetry=false ` +
52-
`--dangerous-disable-rate-limits ` +
53-
`--provisioner-daemons 10 ` +
54-
`--provisioner-daemons-echo ` +
55-
`--web-terminal-renderer=dom ` +
56-
`--pprof-enable`,
52+
command: [
53+
`go run -tags embed ${coderMain} server`,
54+
"--global-config $(mktemp -d -t e2e-XXXXXXXXXX)",
55+
`--access-url=http://localhost:${coderPort}`,
56+
`--http-address=localhost:${coderPort}`,
57+
// Adding an enterprise license causes issues with pgcoord when running with `--in-memory`.
58+
!enterpriseLicense && "--in-memory",
59+
"--telemetry=false",
60+
"--dangerous-disable-rate-limits",
61+
"--provisioner-daemons 10",
62+
"--provisioner-daemons-echo",
63+
"--web-terminal-renderer=dom",
64+
"--pprof-enable",
65+
]
66+
.filter(Boolean)
67+
.join(" "),
5768
env: {
5869
...process.env,
5970

site/e2e/tests/updateTemplate.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ test("add and remove a group", async ({ page }) => {
4242

4343
// Now remove the group
4444
await row.getByLabel("More options").click();
45-
await page.getByText("Delete").click();
45+
await page.getByText("Remove").click();
4646
await expect(page.getByText("Group removed successfully!")).toBeVisible();
4747
await expect(row).not.toBeVisible();
4848
});

0 commit comments

Comments
 (0)