diff --git a/frontend/playwright/ui/specs/assets-tab.spec.js b/frontend/playwright/ui/specs/assets-tab.spec.js index ad3d5d2d7c..7b946c980e 100644 --- a/frontend/playwright/ui/specs/assets-tab.spec.js +++ b/frontend/playwright/ui/specs/assets-tab.spec.js @@ -1,14 +1,14 @@ import { test, expect } from "@playwright/test"; -import { WorkspacePage } from "../pages/WorkspacePage"; +import { WasmWorkspacePage } from "../pages/WasmWorkspacePage"; test.beforeEach(async ({ page }) => { - await WorkspacePage.init(page); + await WasmWorkspacePage.init(page); }); test("User adds a library and its automatically selected in the color palette", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(); await workspacePage.mockRPC( "link-file-to-library", @@ -53,7 +53,7 @@ test("User adds a library and its automatically selected in the color palette", test("BUG 10090 - Local library should be expanded by default", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(page); await workspacePage.goToWorkspace(); diff --git a/frontend/playwright/ui/specs/colorpicker.spec.js b/frontend/playwright/ui/specs/colorpicker.spec.js index 78244f0e63..e727f4aac7 100644 --- a/frontend/playwright/ui/specs/colorpicker.spec.js +++ b/frontend/playwright/ui/specs/colorpicker.spec.js @@ -1,15 +1,15 @@ import { test, expect } from "@playwright/test"; -import { WorkspacePage } from "../pages/WorkspacePage"; +import { WasmWorkspacePage } from "../pages/WasmWorkspacePage"; test.beforeEach(async ({ page }) => { - await WorkspacePage.init(page); + await WasmWorkspacePage.init(page); }); // Fix for https://tree.taiga.io/project/penpot/issue/7549 test("Bug 7549 - User clicks on color swatch to display the color picker next to it", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(page); await workspacePage.goToWorkspace(); @@ -25,7 +25,7 @@ test("Bug 7549 - User clicks on color swatch to display the color picker next to }); test("Create a LINEAR gradient", async ({ page }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(); await workspacePage.mockRPC( /get\-file\?/, @@ -99,7 +99,7 @@ test("Create a LINEAR gradient", async ({ page }) => { }); test("Create a RADIAL gradient", async ({ page }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(); await workspacePage.mockRPC( /get\-file\?/, @@ -183,7 +183,7 @@ test("Create a RADIAL gradient", async ({ page }) => { }); test("Gradient stops limit", async ({ page }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.mockConfigFlags(["enable-feature-render-wasm"]); await workspacePage.setupEmptyFile(page); @@ -215,7 +215,7 @@ test("Gradient stops limit", async ({ page }) => { test("Bug 9900 - Color picker has no inputs for HSV values", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(page); await workspacePage.goToWorkspace(); @@ -232,7 +232,7 @@ test("Bug 9900 - Color picker has no inputs for HSV values", async ({ }); test("Bug 10089 - Cannot change alpha", async ({ page }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(); await workspacePage.mockRPC( /get\-file\?/, diff --git a/frontend/playwright/ui/specs/design-tab.spec.js b/frontend/playwright/ui/specs/design-tab.spec.js index f3441140eb..489579b844 100644 --- a/frontend/playwright/ui/specs/design-tab.spec.js +++ b/frontend/playwright/ui/specs/design-tab.spec.js @@ -1,8 +1,8 @@ import { test, expect } from "@playwright/test"; -import { WorkspacePage } from "../pages/WorkspacePage"; +import { WasmWorkspacePage } from "../pages/WasmWorkspacePage"; test.beforeEach(async ({ page }) => { - await WorkspacePage.init(page); + await WasmWorkspacePage.init(page); }); const multipleConstraintsFileId = `03bff843-920f-81a1-8004-756365e1eb6a`; @@ -42,7 +42,7 @@ test.describe("Constraints", () => { test("Constraint dropdown shows 'Mixed' when multiple layers are selected with different constraints", async ({ page, }) => { - const workspace = new WorkspacePage(page); + const workspace = new WasmWorkspacePage(page); await setupFileWithMultipeConstraints(workspace); await workspace.goToWorkspace({ fileId: multipleConstraintsFileId, @@ -70,7 +70,7 @@ test.describe("Shape attributes", () => { test("Cannot add a new fill when the limit has been reached", async ({ page, }) => { - const workspace = new WorkspacePage(page); + const workspace = new WasmWorkspacePage(page); await workspace.mockConfigFlags(["enable-feature-render-wasm"]); await workspace.setupEmptyFile(); await workspace.mockRPC(/get\-file\?/, "design/get-file-fills-limit.json"); @@ -94,7 +94,7 @@ test.describe("Shape attributes", () => { test.skip("Cannot add a new text fill when the limit has been reached", async ({ page, }) => { - const workspace = new WorkspacePage(page); + const workspace = new WasmWorkspacePage(page); await workspace.mockConfigFlags(["enable-feature-render-wasm"]); await workspace.setupEmptyFile(); await workspace.mockRPC( @@ -128,7 +128,7 @@ test.describe("Multiple shapes attributes", () => { test("User selects multiple shapes with sames fills, strokes, shadows and blur", async ({ page, }) => { - const workspace = new WorkspacePage(page); + const workspace = new WasmWorkspacePage(page); await setupFileWithMultipeConstraints(workspace); await workspace.goToWorkspace({ fileId: multipleConstraintsFileId, @@ -148,7 +148,7 @@ test.describe("Multiple shapes attributes", () => { test("User selects multiple shapes with different fills, strokes, shadows and blur", async ({ page, }) => { - const workspace = new WorkspacePage(page); + const workspace = new WasmWorkspacePage(page); await setupFileWithMultipeAttributes(workspace); await workspace.goToWorkspace({ fileId: multipleAttributesFileId, @@ -168,7 +168,7 @@ test.describe("Multiple shapes attributes", () => { test("BUG 7760 - Layout losing properties when changing parents", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(); await workspacePage.mockRPC(/get\-file\?/, "workspace/get-file-7760.json"); await workspacePage.mockRPC( @@ -205,7 +205,7 @@ test("BUG 7760 - Layout losing properties when changing parents", async ({ test("BUG 9061 - Group blur visibility toggle icon not updating", async ({ page, }) => { - const workspace = new WorkspacePage(page); + const workspace = new WasmWorkspacePage(page); await workspace.setupEmptyFile(); await workspace.mockRPC(/get\-file\?/, "design/get-file-9061.json"); await workspace.mockRPC( @@ -234,7 +234,7 @@ test("BUG 9061 - Group blur visibility toggle icon not updating", async ({ test("BUG 9543 - Layout padding inputs not showing 'mixed' when needed", async ({ page, }) => { - const workspace = new WorkspacePage(page); + const workspace = new WasmWorkspacePage(page); await workspace.setupEmptyFile(); await workspace.mockRPC(/get\-file\?/, "design/get-file-9543.json"); await workspace.mockRPC( @@ -267,7 +267,7 @@ test("BUG 9543 - Layout padding inputs not showing 'mixed' when needed", async ( test("BUG 11177 - Font size input not showing 'mixed' when needed", async ({ page, }) => { - const workspace = new WorkspacePage(page); + const workspace = new WasmWorkspacePage(page); await workspace.setupEmptyFile(); await workspace.mockRPC(/get\-file\?/, "design/get-file-11177.json"); @@ -288,7 +288,7 @@ test("BUG 11177 - Font size input not showing 'mixed' when needed", async ({ test("BUG 12287 Fix identical text fills not being added/removed", async ({ page, }) => { - const workspace = new WorkspacePage(page); + const workspace = new WasmWorkspacePage(page); await workspace.setupEmptyFile(); await workspace.mockRPC(/get\-file\?/, "design/get-file-12287.json"); @@ -323,7 +323,7 @@ test("BUG 12287 Fix identical text fills not being added/removed", async ({ }); test("BUG 12384 - Export crashing when exporting a board", async ({ page }) => { - const workspace = new WorkspacePage(page); + const workspace = new WasmWorkspacePage(page); await workspace.setupEmptyFile(); await workspace.mockRPC(/get\-file\?/, "design/get-file-12384.json"); diff --git a/frontend/playwright/ui/specs/export-frames.spec.js b/frontend/playwright/ui/specs/export-frames.spec.js index 54b5b18f8d..fee390204d 100644 --- a/frontend/playwright/ui/specs/export-frames.spec.js +++ b/frontend/playwright/ui/specs/export-frames.spec.js @@ -1,8 +1,8 @@ import { test, expect } from "@playwright/test"; -import { WorkspacePage } from "../pages/WorkspacePage"; +import { WasmWorkspacePage } from "../pages/WasmWorkspacePage"; test.beforeEach(async ({ page }) => { - await WorkspacePage.init(page); + await WasmWorkspacePage.init(page); }); /** @@ -32,7 +32,7 @@ test.describe("Export frames to PDF", () => { test("Export frames menu option is NOT visible when page has no frames", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(); await workspacePage.goToWorkspace(); @@ -48,7 +48,7 @@ test.describe("Export frames to PDF", () => { test("Export frames menu option is visible when there are frames (even if not selected)", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await setupWorkspaceWithFrames(workspacePage); // Open main menu @@ -62,7 +62,7 @@ test.describe("Export frames to PDF", () => { test("Export frames modal shows all frames when none are selected", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await setupWorkspaceWithFrames(workspacePage); // Don't select any frame @@ -88,7 +88,7 @@ test.describe("Export frames to PDF", () => { test("Export frames modal shows only the selected frames", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await setupWorkspaceWithFrames(workspacePage); // Select Frame 1 @@ -116,7 +116,7 @@ test.describe("Export frames to PDF", () => { }); test("User can deselect frames in the export modal", async ({ page }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await setupWorkspaceWithFrames(workspacePage); // Select Frame 1 @@ -149,7 +149,7 @@ test.describe("Export frames to PDF", () => { test("Export button is disabled when all frames are deselected", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await setupWorkspaceWithFrames(workspacePage); // Select Frame 1 @@ -173,7 +173,7 @@ test.describe("Export frames to PDF", () => { }); test("User can cancel the export modal", async ({ page }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await setupWorkspaceWithFrames(workspacePage); // Select Frame 1 diff --git a/frontend/playwright/ui/specs/inspect-layout.spec.js b/frontend/playwright/ui/specs/inspect-layout.spec.js index 0190b76ed2..4bcf1e0d32 100644 --- a/frontend/playwright/ui/specs/inspect-layout.spec.js +++ b/frontend/playwright/ui/specs/inspect-layout.spec.js @@ -1,15 +1,15 @@ import { test, expect } from "@playwright/test"; -import { WorkspacePage } from "../pages/WorkspacePage"; +import { WasmWorkspacePage } from "../pages/WasmWorkspacePage"; test.beforeEach(async ({ page }) => { - await WorkspacePage.init(page); + await WasmWorkspacePage.init(page); }); // Fix for https://tree.taiga.io/project/penpot/issue/9042 test("Bug 9042 - Measurement unit dropdowns for columns are cut off in grid layout edit mode", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(page); await workspacePage.mockRPC(/get\-file\?/, "workspace/get-file-9042.json"); await workspacePage.mockRPC( @@ -37,7 +37,7 @@ test("[Taiga #9116] Copy CSS background color in the selected format in the INSP page, context, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(page); await workspacePage.goToWorkspace(); @@ -87,7 +87,7 @@ test("[Taiga #10630] [INSPECT] Style assets not being displayed on info tab", as page, context, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(page); await workspacePage.goToWorkspace(); await workspacePage.mockRPC( diff --git a/frontend/playwright/ui/specs/layers-tab.spec.js b/frontend/playwright/ui/specs/layers-tab.spec.js index fd86e88a1d..e2b6477e0b 100644 --- a/frontend/playwright/ui/specs/layers-tab.spec.js +++ b/frontend/playwright/ui/specs/layers-tab.spec.js @@ -1,14 +1,14 @@ import { test, expect } from "@playwright/test"; -import { WorkspacePage } from "../pages/WorkspacePage"; +import { WasmWorkspacePage } from "../pages/WasmWorkspacePage"; test.beforeEach(async ({ page }) => { - await WorkspacePage.init(page); + await WasmWorkspacePage.init(page); }); test("BUG 7466 - Layers tab height extends to the bottom when 'Pages' is collapsed", async ({ page, }) => { - const workspace = new WorkspacePage(page); + const workspace = new WasmWorkspacePage(page); await workspace.setupEmptyFile(); await workspace.goToWorkspace(); diff --git a/frontend/playwright/ui/specs/subscriptions-workspace.spec.js b/frontend/playwright/ui/specs/subscriptions-workspace.spec.js index 3fbedc3d75..765481d1f3 100644 --- a/frontend/playwright/ui/specs/subscriptions-workspace.spec.js +++ b/frontend/playwright/ui/specs/subscriptions-workspace.spec.js @@ -1,9 +1,9 @@ import { test, expect } from "@playwright/test"; -import WorkspacePage from "../pages/WorkspacePage"; +import { WasmWorkspacePage } from "../pages/WasmWorkspacePage"; test.beforeEach(async ({ page }) => { - await WorkspacePage.init(page); - await WorkspacePage.mockConfigFlags(page, [ + await WasmWorkspacePage.init(page); + await WasmWorkspacePage.mockConfigFlags(page, [ "enable-subscriptions", "disable-onboarding", ]); @@ -13,16 +13,16 @@ test.describe("Subscriptions: workspace", () => { test("Unlimited team should have 'Power up your plan' link in main menu", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(); - await WorkspacePage.mockRPC( + await WasmWorkspacePage.mockRPC( page, "get-profile", "subscription/get-profile-unlimited-subscription.json", ); - await WorkspacePage.mockRPC( + await WasmWorkspacePage.mockRPC( page, "get-subscription-usage", "subscription/get-subscription-usage.json", @@ -41,16 +41,16 @@ test.describe("Subscriptions: workspace", () => { test("Enterprise team should not have 'Power up your plan' link in main menu", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(); - await WorkspacePage.mockRPC( + await WasmWorkspacePage.mockRPC( page, "get-profile", "subscription/get-profile-enterprise-subscription.json", ); - await WorkspacePage.mockRPC( + await WasmWorkspacePage.mockRPC( page, "get-subscription-usage", "subscription/get-subscription-usage.json", @@ -69,16 +69,16 @@ test.describe("Subscriptions: workspace", () => { test("Professional team should have 7 days autosaved versions", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(); - await WorkspacePage.mockRPC( + await WasmWorkspacePage.mockRPC( page, "get-profile", "subscription/get-profile-enterprise-subscription.json", ); - await WorkspacePage.mockRPC( + await WasmWorkspacePage.mockRPC( page, "get-subscription-usage", "subscription/get-subscription-usage.json", @@ -105,22 +105,22 @@ test.describe("Subscriptions: workspace", () => { test("Unlimited team should have 30 days autosaved versions", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(); - await WorkspacePage.mockRPC( + await WasmWorkspacePage.mockRPC( page, "get-profile", "subscription/get-profile-unlimited-subscription.json", ); - await WorkspacePage.mockRPC( + await WasmWorkspacePage.mockRPC( page, "get-subscription-usage", "subscription/get-subscription-usage.json", ); - await WorkspacePage.mockRPC( + await WasmWorkspacePage.mockRPC( page, "get-teams", "subscription/get-teams-unlimited-one-team.json", @@ -147,22 +147,22 @@ test.describe("Subscriptions: workspace", () => { test("Unlimited team should have 90 days autosaved versions", async ({ page, }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(); - await WorkspacePage.mockRPC( + await WasmWorkspacePage.mockRPC( page, "get-profile", "subscription/get-profile-enterprise-subscription.json", ); - await WorkspacePage.mockRPC( + await WasmWorkspacePage.mockRPC( page, "get-subscription-usage", "subscription/get-subscription-usage.json", ); - await WorkspacePage.mockRPC( + await WasmWorkspacePage.mockRPC( page, "get-teams", "subscription/get-teams-enterprise-one-team.json", diff --git a/frontend/playwright/ui/specs/versions.spec.js b/frontend/playwright/ui/specs/versions.spec.js index 0dc8073742..e681fb8b7b 100644 --- a/frontend/playwright/ui/specs/versions.spec.js +++ b/frontend/playwright/ui/specs/versions.spec.js @@ -1,15 +1,15 @@ import { test, expect } from "@playwright/test"; -import { WorkspacePage } from "../pages/WorkspacePage"; +import { WasmWorkspacePage } from "../pages/WasmWorkspacePage"; import { presenceFixture } from "../../data/workspace/ws-notifications"; test.beforeEach(async ({ page }) => { - await WorkspacePage.init(page); - const workspacePage = new WorkspacePage(page); + await WasmWorkspacePage.init(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(page); }); test("Save and restore version", async ({ page }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.mockRPC(/get\-file\?/, "workspace/versions-init.json"); await workspacePage.mockRPC( @@ -97,7 +97,7 @@ test("Save and restore version", async ({ page }) => { }); test("BUG 11006 - Fix history panel shortcut", async ({ page }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.mockRPC(/get\-file\?/, "workspace/versions-init.json"); await workspacePage.mockRPC( "get-file-snapshots?file-id=*", diff --git a/frontend/playwright/ui/specs/workspace-comments.spec.js b/frontend/playwright/ui/specs/workspace-comments.spec.js index b3ee1515ee..8cc3cbe203 100644 --- a/frontend/playwright/ui/specs/workspace-comments.spec.js +++ b/frontend/playwright/ui/specs/workspace-comments.spec.js @@ -1,12 +1,12 @@ import { test, expect } from "@playwright/test"; -import { WorkspacePage } from "../pages/WorkspacePage"; +import { WasmWorkspacePage } from "../pages/WasmWorkspacePage"; test.beforeEach(async ({ page }) => { - await WorkspacePage.init(page); + await WasmWorkspacePage.init(page); }); test("Group bubbles when zooming out if they overlap", async ({ page }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(); await workspacePage.setupFileWithComments(); diff --git a/frontend/playwright/ui/specs/workspace-shared-library.spec.js b/frontend/playwright/ui/specs/workspace-shared-library.spec.js index eaef180ae7..8c312de625 100644 --- a/frontend/playwright/ui/specs/workspace-shared-library.spec.js +++ b/frontend/playwright/ui/specs/workspace-shared-library.spec.js @@ -1,5 +1,5 @@ import { test, expect } from "@playwright/test"; -import { WorkspacePage } from "../pages/WorkspacePage"; +import { WasmWorkspacePage } from "../pages/WasmWorkspacePage"; const mainFileId = "3622460c-3408-81e2-8005-2fd0e55888b7"; const sharedFileId = "3622460c-3408-81e2-8005-2fc938010233"; @@ -13,12 +13,12 @@ const sharedFileFragmentId1 = "3622460c-3408-81e2-8005-31859c15ff91"; const sharedFileFragmentId2 = "3622460c-3408-81e2-8005-31859c15ff90"; test.beforeEach(async ({ page }) => { - await WorkspacePage.init(page); + await WasmWorkspacePage.init(page); }); // Fix for https://tree.taiga.io/project/penpot/issue/9042 test("Bug 9056 - 'More info' doesn't open the update tab", async ({ page }) => { - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(page); await workspacePage.mockRPC( @@ -76,7 +76,7 @@ test("Bug 9056 - 'More info' doesn't open the update tab", async ({ page }) => { test("Bug 10113 - Empty library modal for non-empty library", async ({ page, }) => { - const workspace = new WorkspacePage(page); + const workspace = new WasmWorkspacePage(page); await workspace.setupEmptyFile(page); await workspace.mockRPC(/get\-file\?/, "workspace/get-file-10113.json"); diff --git a/frontend/playwright/ui/specs/workspace-viewer-role.spec.js b/frontend/playwright/ui/specs/workspace-viewer-role.spec.js index bd1ce6b2e4..e029e4f165 100644 --- a/frontend/playwright/ui/specs/workspace-viewer-role.spec.js +++ b/frontend/playwright/ui/specs/workspace-viewer-role.spec.js @@ -1,13 +1,13 @@ import { test, expect } from "@playwright/test"; -import { WorkspacePage } from "../pages/WorkspacePage"; +import { WasmWorkspacePage } from "../pages/WasmWorkspacePage"; import { presenceFixture } from "../../data/workspace/ws-notifications"; test.beforeEach(async ({ page }) => { - await WorkspacePage.init(page); + await WasmWorkspacePage.init(page); - const workspacePage = new WorkspacePage(page); + const workspacePage = new WasmWorkspacePage(page); await workspacePage.setupEmptyFile(page); - await WorkspacePage.mockRPC(page, "get-teams", "get-teams-role-viewer.json"); + await WasmWorkspacePage.mockRPC(page, "get-teams", "get-teams-role-viewer.json"); await workspacePage.goToWorkspace(); });