mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-01 21:05:42 +09:00
perf: isolate parallel E2E cases and balance slow files
This commit is contained in:
1 parent
4cb82516ac
commit
fb3588b2e6
7 files changed
+25
-22
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { expect } from "@playwright/test";
|
||||
import { randomUUID } from "node:crypto";
|
||||
import {
|
||||
createAssetFolder,
|
||||
deleteSelectedAsset,
|
||||
@@ -32,17 +33,21 @@ import {
|
||||
import { insertTemplateAfterCanvasText } from "../flows/template-insertion";
|
||||
import { createContentModeProject } from "../fixtures/content-mode-suite";
|
||||
import type { SeededContentModeProject } from "../fixtures/content-mode-project";
|
||||
import { test, withBrowserContext } from "../test";
|
||||
import { test } from "../test";
|
||||
import { measure } from "../perf";
|
||||
import { e2ePaidPlanName } from "../plans";
|
||||
import { loadDevBuild } from "../db";
|
||||
|
||||
let fixture: SeededContentModeProject;
|
||||
|
||||
test.beforeAll(async ({ browser }) => {
|
||||
fixture = await withBrowserContext(browser, (context) =>
|
||||
createContentModeProject({ context, devPlan: e2ePaidPlanName })
|
||||
);
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.beforeEach(async ({ context }) => {
|
||||
fixture = await createContentModeProject({
|
||||
context,
|
||||
devPlan: e2ePaidPlanName,
|
||||
email: `content-mode-assets-${randomUUID()}@webstudio.test`,
|
||||
});
|
||||
});
|
||||
test("Editor can insert content templates with assets and styles", async ({
|
||||
page,
|
||||
@@ -416,18 +421,7 @@ test("Editor can replace image source with asset in content mode", async ({
|
||||
|
||||
test("Builder copy/paste preserves image asset references after reload", async ({
|
||||
page,
|
||||
context,
|
||||
}) => {
|
||||
const fixture = await createContentModeProject({
|
||||
context: context,
|
||||
devPlan: e2ePaidPlanName,
|
||||
email: "asset-copy-e2e@webstudio.test",
|
||||
title: "Asset Copy E2E",
|
||||
assetNamePrefix: "asset-copy-",
|
||||
editorToken: "asset-copy-e2e-editor-token",
|
||||
builderToken: "asset-copy-e2e-builder-token",
|
||||
});
|
||||
|
||||
const getImageAssetReferenceCount = async () => {
|
||||
const build = await loadDevBuild({ projectId: fixture.projectId });
|
||||
const props = JSON.parse(build.props) as Array<{
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { randomUUID } from "node:crypto";
|
||||
import { openProjectBuilder, waitForCanvasText } from "../flows/builder";
|
||||
import { selectCanvasTextInstance } from "../flows/canvas-selection";
|
||||
import { expectLocatorHidden } from "../flows/assertions";
|
||||
@@ -19,16 +20,20 @@ import { waitForSyncStatus } from "../flows/sync-status";
|
||||
import { insertTemplateAfterCanvasText } from "../flows/template-insertion";
|
||||
import { createContentModeProject } from "../fixtures/content-mode-suite";
|
||||
import type { SeededContentModeProject } from "../fixtures/content-mode-project";
|
||||
import { newIsolatedPage, test, withBrowserContext } from "../test";
|
||||
import { newIsolatedPage, test } from "../test";
|
||||
import { measure } from "../perf";
|
||||
import { e2ePaidPlanName } from "../plans";
|
||||
|
||||
let fixture: SeededContentModeProject;
|
||||
|
||||
test.beforeAll(async ({ browser }) => {
|
||||
fixture = await withBrowserContext(browser, (context) =>
|
||||
createContentModeProject({ context, devPlan: e2ePaidPlanName })
|
||||
);
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.beforeEach(async ({ context }) => {
|
||||
fixture = await createContentModeProject({
|
||||
context,
|
||||
devPlan: e2ePaidPlanName,
|
||||
email: `content-mode-pages-${randomUUID()}@webstudio.test`,
|
||||
});
|
||||
});
|
||||
test("Editor can create styled page from template in content mode", async ({
|
||||
page,
|
||||
|
||||
File renamed without changes.
@@ -19,6 +19,8 @@ const reactGlobalPath = fileURLToPath(
|
||||
new URL("../../../../scripts/register-react-global.ts", import.meta.url)
|
||||
);
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test("MCP-authored Form uses query navigation when no Actions are connected", async ({
|
||||
page,
|
||||
context,
|
||||
|
||||
File renamed without changes.
@@ -9,6 +9,8 @@ import { createContentModeProject } from "../fixtures/content-mode-suite";
|
||||
import { getCanvasFrame, waitForCanvasFrame } from "../flows/builder";
|
||||
import { getProjectBuilderUrl, test } from "../test";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test("Preview Form posts to the authenticated Builder and sets error state without publishing", async ({
|
||||
page,
|
||||
context,
|
||||
|
||||
@@ -47,7 +47,7 @@ export default defineConfig({
|
||||
url: builderUrl,
|
||||
reuseExistingServer: false,
|
||||
ignoreHTTPSErrors: true,
|
||||
timeout: 60_000,
|
||||
timeout: 120_000,
|
||||
stdout: "pipe",
|
||||
stderr: "pipe",
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user