mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
ci: disable enterprise e2e tests temporarily (#12874)
This commit is contained in:
@@ -478,13 +478,6 @@ jobs:
|
|||||||
DEBUG: pw:api
|
DEBUG: pw:api
|
||||||
working-directory: site
|
working-directory: site
|
||||||
|
|
||||||
# Run all of the tests with an enterprise license
|
|
||||||
- run: pnpm playwright:test --forbid-only --workers 1
|
|
||||||
env:
|
|
||||||
DEBUG: pw:api
|
|
||||||
CODER_E2E_ENTERPRISE_LICENSE: ${{ secrets.CODER_E2E_ENTERPRISE_LICENSE }}
|
|
||||||
working-directory: site
|
|
||||||
|
|
||||||
- name: Upload Playwright Failed Tests
|
- name: Upload Playwright Failed Tests
|
||||||
if: always() && github.actor != 'dependabot[bot]' && runner.os == 'Linux' && !github.event.pull_request.head.repo.fork
|
if: always() && github.actor != 'dependabot[bot]' && runner.os == 'Linux' && !github.event.pull_request.head.repo.fork
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
import { defineConfig } from "@playwright/test";
|
import { defineConfig } from "@playwright/test";
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
import { coderMain, coderPort, coderdPProfPort, gitAuth } from "./constants";
|
import {
|
||||||
|
coderMain,
|
||||||
|
coderPort,
|
||||||
|
coderdPProfPort,
|
||||||
|
enterpriseLicense,
|
||||||
|
gitAuth,
|
||||||
|
} from "./constants";
|
||||||
|
|
||||||
export const wsEndpoint = process.env.CODER_E2E_WS_ENDPOINT;
|
export const wsEndpoint = process.env.CODER_E2E_WS_ENDPOINT;
|
||||||
|
|
||||||
@@ -43,17 +49,22 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
webServer: {
|
webServer: {
|
||||||
url: `http://localhost:${coderPort}/api/v2/deployment/config`,
|
url: `http://localhost:${coderPort}/api/v2/deployment/config`,
|
||||||
command:
|
command: [
|
||||||
`go run -tags embed ${coderMain} server ` +
|
`go run -tags embed ${coderMain} server`,
|
||||||
`--global-config $(mktemp -d -t e2e-XXXXXXXXXX) ` +
|
"--global-config $(mktemp -d -t e2e-XXXXXXXXXX)",
|
||||||
`--access-url=http://localhost:${coderPort} ` +
|
`--access-url=http://localhost:${coderPort}`,
|
||||||
`--http-address=localhost:${coderPort} ` +
|
`--http-address=localhost:${coderPort}`,
|
||||||
`--in-memory --telemetry=false ` +
|
// Adding an enterprise license causes issues with pgcoord when running with `--in-memory`.
|
||||||
`--dangerous-disable-rate-limits ` +
|
!enterpriseLicense && "--in-memory",
|
||||||
`--provisioner-daemons 10 ` +
|
"--telemetry=false",
|
||||||
`--provisioner-daemons-echo ` +
|
"--dangerous-disable-rate-limits",
|
||||||
`--web-terminal-renderer=dom ` +
|
"--provisioner-daemons 10",
|
||||||
`--pprof-enable`,
|
"--provisioner-daemons-echo",
|
||||||
|
"--web-terminal-renderer=dom",
|
||||||
|
"--pprof-enable",
|
||||||
|
]
|
||||||
|
.filter(Boolean)
|
||||||
|
.join(" "),
|
||||||
env: {
|
env: {
|
||||||
...process.env,
|
...process.env,
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ test("add and remove a group", async ({ page }) => {
|
|||||||
|
|
||||||
// Now remove the group
|
// Now remove the group
|
||||||
await row.getByLabel("More options").click();
|
await row.getByLabel("More options").click();
|
||||||
await page.getByText("Delete").click();
|
await page.getByText("Remove").click();
|
||||||
await expect(page.getByText("Group removed successfully!")).toBeVisible();
|
await expect(page.getByText("Group removed successfully!")).toBeVisible();
|
||||||
await expect(row).not.toBeVisible();
|
await expect(row).not.toBeVisible();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user