mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 04:36:22 +00:00
test: add mocked Control UI E2E tests and playwright for local verification and development (#85278)
* test: add control ui mocked e2e
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
applyDefaultVitestNoOutputTimeout,
|
||||
applyParallelVitestCachePaths,
|
||||
buildFullSuiteVitestRunPlans,
|
||||
buildVitestArgs,
|
||||
buildVitestRunPlans,
|
||||
listFullExtensionVitestProjectConfigs,
|
||||
orderFullSuiteSpecsForParallelRun,
|
||||
@@ -583,6 +584,37 @@ describe("scripts/test-projects changed-target routing", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("routes control ui e2e tests to the ui e2e lane", () => {
|
||||
expect(buildVitestRunPlans(["ui/src/ui/e2e/chat-flow.e2e.test.ts"])).toEqual([
|
||||
{
|
||||
config: "test/vitest/vitest.ui-e2e.config.ts",
|
||||
forwardedArgs: [],
|
||||
includePatterns: ["ui/src/ui/e2e/chat-flow.e2e.test.ts"],
|
||||
watchMode: false,
|
||||
},
|
||||
]);
|
||||
|
||||
expect(buildVitestRunPlans(["ui/src/test-helpers/control-ui-e2e.ts"])).toEqual([
|
||||
{
|
||||
config: "test/vitest/vitest.ui-e2e.config.ts",
|
||||
forwardedArgs: [],
|
||||
includePatterns: null,
|
||||
watchMode: false,
|
||||
},
|
||||
]);
|
||||
|
||||
expect(buildVitestRunPlans(["ui/src/ui/e2e"])).toEqual([
|
||||
{
|
||||
config: "test/vitest/vitest.ui-e2e.config.ts",
|
||||
forwardedArgs: [],
|
||||
includePatterns: ["ui/src/ui/e2e/**/*.test.ts"],
|
||||
watchMode: false,
|
||||
},
|
||||
]);
|
||||
|
||||
expect(buildVitestArgs(["ui/src/ui/e2e"])).toContain("--configLoader");
|
||||
});
|
||||
|
||||
it("routes changed unit ui tests to the unit ui lane", () => {
|
||||
const plans = buildVitestRunPlans(["--changed", "origin/main"], process.cwd(), () => [
|
||||
"ui/src/ui/chat/grouped-render.test.ts",
|
||||
|
||||
Reference in New Issue
Block a user