diff --git a/frontend/playwright/data/design/get-file-11177.json b/frontend/playwright/data/design/get-file-11177.json index 26829a53fd..126bd3bccb 100644 --- a/frontend/playwright/data/design/get-file-11177.json +++ b/frontend/playwright/data/design/get-file-11177.json @@ -8,6 +8,7 @@ "styles/v2", "fdata/pointer-map", "fdata/objects-map", + "render-wasm/v1", "components/v2", "fdata/shape-data-type" ] @@ -24,8 +25,8 @@ "~:has-media-trimmed": false, "~:comment-thread-seqn": 0, "~:name": "New File 2", - "~:revn": 7, - "~:modified-at": "~m1748434281122", + "~:revn": 9, + "~:modified-at": "~m1748435076906", "~:vern": 0, "~:id": "~ub3e5731a-c295-801d-8006-3fc33c3b1b13", "~:is-shared": false, @@ -99,12 +100,372 @@ ], "~:pages-index": { "~ub3e5731a-c295-801d-8006-3fc33c3b1b14": { - "~#penpot/pointer": [ - "~u5ec9cb0b-596f-80d7-8006-40f791a955eb", - { - "~:created-at": "~m1748434281126" + "~:objects": { + "~u00000000-0000-0000-0000-000000000000": { + "~#shape": { + "~:y": 0, + "~:hide-fill-on-export": false, + "~:transform": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:rotation": 0, + "~:name": "Root Frame", + "~:width": 0.01, + "~:type": "~:frame", + "~:points": [ + { + "~#point": { + "~:x": 0.0, + "~:y": 0.0 + } + }, + { + "~#point": { + "~:x": 0.01, + "~:y": 0.0 + } + }, + { + "~#point": { + "~:x": 0.01, + "~:y": 0.01 + } + }, + { + "~#point": { + "~:x": 0.0, + "~:y": 0.01 + } + } + ], + "~:r2": 0, + "~:proportion-lock": false, + "~:transform-inverse": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:r3": 0, + "~:r1": 0, + "~:id": "~u00000000-0000-0000-0000-000000000000", + "~:parent-id": "~u00000000-0000-0000-0000-000000000000", + "~:frame-id": "~u00000000-0000-0000-0000-000000000000", + "~:strokes": [], + "~:x": 0, + "~:proportion": 1.0, + "~:r4": 0, + "~:selrect": { + "~#rect": { + "~:x": 0, + "~:y": 0, + "~:width": 0.01, + "~:height": 0.01, + "~:x1": 0, + "~:y1": 0, + "~:x2": 0.01, + "~:y2": 0.01 + } + }, + "~:fills": [ + { + "~:fill-color": "#FFFFFF", + "~:fill-opacity": 1 + } + ], + "~:flip-x": null, + "~:height": 0.01, + "~:flip-y": null, + "~:shapes": [ + "~u629b4e50-e524-8051-8006-40f778ee4f52", + "~u629b4e50-e524-8051-8006-40f77ff3c2e7" + ] + } + }, + "~u629b4e50-e524-8051-8006-40f778ee4f52": { + "~#shape": { + "~:y": 46.00000185767806, + "~:transform": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:rotation": 0, + "~:grow-type": "~:auto-width", + "~:content": { + "~:type": "root", + "~:children": [ + { + "~:type": "paragraph-set", + "~:children": [ + { + "~:line-height": "1.2", + "~:font-style": "normal", + "~:children": [ + { + "~:line-height": "1.2", + "~:font-style": "normal", + "~:typography-ref-id": null, + "~:text-transform": "none", + "~:text-align": "left", + "~:font-id": "sourcesanspro", + "~:font-size": "20", + "~:font-weight": "400", + "~:typography-ref-file": null, + "~:text-direction": "ltr", + "~:font-variant-id": "regular", + "~:text-decoration": "none", + "~:letter-spacing": "0", + "~:fills": [ + { + "~:fill-color": "#000000", + "~:fill-opacity": 1 + } + ], + "~:font-family": "sourcesanspro", + "~:text": "Lorem" + } + ], + "~:typography-ref-id": null, + "~:text-transform": "none", + "~:text-align": "left", + "~:font-id": "sourcesanspro", + "~:key": "ccjq7", + "~:font-size": "20", + "~:font-weight": "400", + "~:typography-ref-file": null, + "~:text-direction": "ltr", + "~:type": "paragraph", + "~:font-variant-id": "regular", + "~:text-decoration": "none", + "~:letter-spacing": "0", + "~:fills": [ + { + "~:fill-color": "#000000", + "~:fill-opacity": 1 + } + ], + "~:font-family": "sourcesanspro" + } + ] + } + ] + }, + "~:hide-in-viewer": false, + "~:name": "Lorem", + "~:width": 54.000002241134666, + "~:type": "~:text", + "~:points": [ + { + "~#point": { + "~:x": 597.0000541090969, + "~:y": 46.00000185767806 + } + }, + { + "~#point": { + "~:x": 651.0000563502316, + "~:y": 46.00000185767806 + } + }, + { + "~#point": { + "~:x": 651.0000563502316, + "~:y": 70.0000024537245 + } + }, + { + "~#point": { + "~:x": 597.0000541090969, + "~:y": 70.0000024537245 + } + } + ], + "~:transform-inverse": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:id": "~u629b4e50-e524-8051-8006-40f778ee4f52", + "~:parent-id": "~u00000000-0000-0000-0000-000000000000", + "~:frame-id": "~u00000000-0000-0000-0000-000000000000", + "~:x": 597.0000541090969, + "~:selrect": { + "~#rect": { + "~:x": 597.0000541090969, + "~:y": 46.00000185767806, + "~:width": 54.000002241134666, + "~:height": 24.000000596046448, + "~:x1": 597.0000541090969, + "~:y1": 46.00000185767806, + "~:x2": 651.0000563502316, + "~:y2": 70.0000024537245 + } + }, + "~:flip-x": null, + "~:height": 24.000000596046448, + "~:flip-y": null + } + }, + "~u629b4e50-e524-8051-8006-40f77ff3c2e7": { + "~#shape": { + "~:y": 85.00000137090683, + "~:transform": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:rotation": 0, + "~:grow-type": "~:auto-width", + "~:content": { + "~:type": "root", + "~:children": [ + { + "~:type": "paragraph-set", + "~:children": [ + { + "~:line-height": "1.2", + "~:font-style": "normal", + "~:children": [ + { + "~:line-height": "1.2", + "~:font-style": "normal", + "~:typography-ref-id": null, + "~:text-transform": "none", + "~:text-align": "left", + "~:font-id": "sourcesanspro", + "~:font-size": "14", + "~:font-weight": "400", + "~:typography-ref-file": null, + "~:text-direction": "ltr", + "~:font-variant-id": "regular", + "~:text-decoration": "none", + "~:letter-spacing": "0", + "~:fills": [ + { + "~:fill-color": "#000000", + "~:fill-opacity": 1 + } + ], + "~:font-family": "sourcesanspro", + "~:text": "Ipsum" + } + ], + "~:typography-ref-id": null, + "~:text-transform": "none", + "~:text-align": "left", + "~:font-id": "sourcesanspro", + "~:key": "7hqs0", + "~:font-size": "14", + "~:font-weight": "400", + "~:typography-ref-file": null, + "~:text-direction": "ltr", + "~:type": "paragraph", + "~:font-variant-id": "regular", + "~:text-decoration": "none", + "~:letter-spacing": "0", + "~:fills": [ + { + "~:fill-color": "#000000", + "~:fill-opacity": 1 + } + ], + "~:font-family": "sourcesanspro" + } + ] + } + ] + }, + "~:hide-in-viewer": false, + "~:name": "Ipsum", + "~:width": 36.99999976158142, + "~:type": "~:text", + "~:points": [ + { + "~#point": { + "~:x": 636.9999854560631, + "~:y": 85.00000137090683 + } + }, + { + "~#point": { + "~:x": 673.9999852176445, + "~:y": 85.00000137090683 + } + }, + { + "~#point": { + "~:x": 673.9999852176445, + "~:y": 102.00000947713852 + } + }, + { + "~#point": { + "~:x": 636.9999854560631, + "~:y": 102.00000947713852 + } + } + ], + "~:transform-inverse": { + "~#matrix": { + "~:a": 1.0, + "~:b": 0.0, + "~:c": 0.0, + "~:d": 1.0, + "~:e": 0.0, + "~:f": 0.0 + } + }, + "~:id": "~u629b4e50-e524-8051-8006-40f77ff3c2e7", + "~:parent-id": "~u00000000-0000-0000-0000-000000000000", + "~:frame-id": "~u00000000-0000-0000-0000-000000000000", + "~:x": 636.9999854560631, + "~:selrect": { + "~#rect": { + "~:x": 636.9999854560631, + "~:y": 85.00000137090683, + "~:width": 36.99999976158142, + "~:height": 17.00000810623169, + "~:x1": 636.9999854560631, + "~:y1": 85.00000137090683, + "~:x2": 673.9999852176445, + "~:y2": 102.00000947713852 + } + }, + "~:flip-x": null, + "~:height": 17.00000810623169, + "~:flip-y": null + } } - ] + }, + "~:id": "~ub3e5731a-c295-801d-8006-3fc33c3b1b14", + "~:name": "Page 1" } }, "~:id": "~ub3e5731a-c295-801d-8006-3fc33c3b1b13", diff --git a/frontend/playwright/data/design/get-file-fragment-11177.json b/frontend/playwright/data/design/get-file-fragment-11177.json deleted file mode 100644 index ad8c943b3b..0000000000 --- a/frontend/playwright/data/design/get-file-fragment-11177.json +++ /dev/null @@ -1,373 +0,0 @@ -{ - "~:id": "~u5ec9cb0b-596f-80d7-8006-40f791a955eb", - "~:file-id": "~ub3e5731a-c295-801d-8006-3fc33c3b1b13", - "~:created-at": "~m1748434281117", - "~:data": { - "~:objects": { - "~u00000000-0000-0000-0000-000000000000": { - "~#shape": { - "~:y": 0, - "~:hide-fill-on-export": false, - "~:transform": { - "~#matrix": { - "~:a": 1.0, - "~:b": 0.0, - "~:c": 0.0, - "~:d": 1.0, - "~:e": 0.0, - "~:f": 0.0 - } - }, - "~:rotation": 0, - "~:name": "Root Frame", - "~:width": 0.01, - "~:type": "~:frame", - "~:points": [ - { - "~#point": { - "~:x": 0.0, - "~:y": 0.0 - } - }, - { - "~#point": { - "~:x": 0.01, - "~:y": 0.0 - } - }, - { - "~#point": { - "~:x": 0.01, - "~:y": 0.01 - } - }, - { - "~#point": { - "~:x": 0.0, - "~:y": 0.01 - } - } - ], - "~:r2": 0, - "~:proportion-lock": false, - "~:transform-inverse": { - "~#matrix": { - "~:a": 1.0, - "~:b": 0.0, - "~:c": 0.0, - "~:d": 1.0, - "~:e": 0.0, - "~:f": 0.0 - } - }, - "~:r3": 0, - "~:r1": 0, - "~:id": "~u00000000-0000-0000-0000-000000000000", - "~:parent-id": "~u00000000-0000-0000-0000-000000000000", - "~:frame-id": "~u00000000-0000-0000-0000-000000000000", - "~:strokes": [], - "~:x": 0, - "~:proportion": 1.0, - "~:r4": 0, - "~:selrect": { - "~#rect": { - "~:x": 0, - "~:y": 0, - "~:width": 0.01, - "~:height": 0.01, - "~:x1": 0, - "~:y1": 0, - "~:x2": 0.01, - "~:y2": 0.01 - } - }, - "~:fills": [ - { - "~:fill-color": "#FFFFFF", - "~:fill-opacity": 1 - } - ], - "~:flip-x": null, - "~:height": 0.01, - "~:flip-y": null, - "~:shapes": [ - "~u629b4e50-e524-8051-8006-40f778ee4f52", - "~u629b4e50-e524-8051-8006-40f77ff3c2e7" - ] - } - }, - "~u629b4e50-e524-8051-8006-40f778ee4f52": { - "~#shape": { - "~:y": 46.00000185767806, - "~:transform": { - "~#matrix": { - "~:a": 1.0, - "~:b": 0.0, - "~:c": 0.0, - "~:d": 1.0, - "~:e": 0.0, - "~:f": 0.0 - } - }, - "~:rotation": 0, - "~:grow-type": "~:auto-width", - "~:content": { - "~:type": "root", - "~:children": [ - { - "~:type": "paragraph-set", - "~:children": [ - { - "~:line-height": "1.2", - "~:font-style": "normal", - "~:children": [ - { - "~:line-height": "1.2", - "~:font-style": "normal", - "~:typography-ref-id": null, - "~:text-transform": "none", - "~:text-align": "left", - "~:font-id": "sourcesanspro", - "~:font-size": "20", - "~:font-weight": "400", - "~:typography-ref-file": null, - "~:text-direction": "ltr", - "~:font-variant-id": "regular", - "~:text-decoration": "none", - "~:letter-spacing": "0", - "~:fills": [ - { - "~:fill-color": "#000000", - "~:fill-opacity": 1 - } - ], - "~:font-family": "sourcesanspro", - "~:text": "Lorem" - } - ], - "~:typography-ref-id": null, - "~:text-transform": "none", - "~:text-align": "left", - "~:font-id": "sourcesanspro", - "~:key": "ccjq7", - "~:font-size": "20", - "~:font-weight": "400", - "~:typography-ref-file": null, - "~:text-direction": "ltr", - "~:type": "paragraph", - "~:font-variant-id": "regular", - "~:text-decoration": "none", - "~:letter-spacing": "0", - "~:fills": [ - { - "~:fill-color": "#000000", - "~:fill-opacity": 1 - } - ], - "~:font-family": "sourcesanspro" - } - ] - } - ] - }, - "~:hide-in-viewer": false, - "~:name": "Lorem", - "~:width": 54.000002241134666, - "~:type": "~:text", - "~:points": [ - { - "~#point": { - "~:x": 597.0000541090969, - "~:y": 46.00000185767806 - } - }, - { - "~#point": { - "~:x": 651.0000563502316, - "~:y": 46.00000185767806 - } - }, - { - "~#point": { - "~:x": 651.0000563502316, - "~:y": 70.0000024537245 - } - }, - { - "~#point": { - "~:x": 597.0000541090969, - "~:y": 70.0000024537245 - } - } - ], - "~:transform-inverse": { - "~#matrix": { - "~:a": 1.0, - "~:b": 0.0, - "~:c": 0.0, - "~:d": 1.0, - "~:e": 0.0, - "~:f": 0.0 - } - }, - "~:id": "~u629b4e50-e524-8051-8006-40f778ee4f52", - "~:parent-id": "~u00000000-0000-0000-0000-000000000000", - "~:frame-id": "~u00000000-0000-0000-0000-000000000000", - "~:x": 597.0000541090969, - "~:selrect": { - "~#rect": { - "~:x": 597.0000541090969, - "~:y": 46.00000185767806, - "~:width": 54.000002241134666, - "~:height": 24.000000596046448, - "~:x1": 597.0000541090969, - "~:y1": 46.00000185767806, - "~:x2": 651.0000563502316, - "~:y2": 70.0000024537245 - } - }, - "~:flip-x": null, - "~:height": 24.000000596046448, - "~:flip-y": null - } - }, - "~u629b4e50-e524-8051-8006-40f77ff3c2e7": { - "~#shape": { - "~:y": 85.00000137090683, - "~:transform": { - "~#matrix": { - "~:a": 1.0, - "~:b": 0.0, - "~:c": 0.0, - "~:d": 1.0, - "~:e": 0.0, - "~:f": 0.0 - } - }, - "~:rotation": 0, - "~:grow-type": "~:auto-width", - "~:content": { - "~:type": "root", - "~:children": [ - { - "~:type": "paragraph-set", - "~:children": [ - { - "~:line-height": "1.2", - "~:font-style": "normal", - "~:children": [ - { - "~:line-height": "1.2", - "~:font-style": "normal", - "~:typography-ref-id": null, - "~:text-transform": "none", - "~:text-align": "left", - "~:font-id": "sourcesanspro", - "~:font-size": "14", - "~:font-weight": "400", - "~:typography-ref-file": null, - "~:text-direction": "ltr", - "~:font-variant-id": "regular", - "~:text-decoration": "none", - "~:letter-spacing": "0", - "~:fills": [ - { - "~:fill-color": "#000000", - "~:fill-opacity": 1 - } - ], - "~:font-family": "sourcesanspro", - "~:text": "Ipsum" - } - ], - "~:typography-ref-id": null, - "~:text-transform": "none", - "~:text-align": "left", - "~:font-id": "sourcesanspro", - "~:key": "7hqs0", - "~:font-size": "14", - "~:font-weight": "400", - "~:typography-ref-file": null, - "~:text-direction": "ltr", - "~:type": "paragraph", - "~:font-variant-id": "regular", - "~:text-decoration": "none", - "~:letter-spacing": "0", - "~:fills": [ - { - "~:fill-color": "#000000", - "~:fill-opacity": 1 - } - ], - "~:font-family": "sourcesanspro" - } - ] - } - ] - }, - "~:hide-in-viewer": false, - "~:name": "Ipsum", - "~:width": 36.99999976158142, - "~:type": "~:text", - "~:points": [ - { - "~#point": { - "~:x": 636.9999854560631, - "~:y": 85.00000137090683 - } - }, - { - "~#point": { - "~:x": 673.9999852176445, - "~:y": 85.00000137090683 - } - }, - { - "~#point": { - "~:x": 673.9999852176445, - "~:y": 102.00000947713852 - } - }, - { - "~#point": { - "~:x": 636.9999854560631, - "~:y": 102.00000947713852 - } - } - ], - "~:transform-inverse": { - "~#matrix": { - "~:a": 1.0, - "~:b": 0.0, - "~:c": 0.0, - "~:d": 1.0, - "~:e": 0.0, - "~:f": 0.0 - } - }, - "~:id": "~u629b4e50-e524-8051-8006-40f77ff3c2e7", - "~:parent-id": "~u00000000-0000-0000-0000-000000000000", - "~:frame-id": "~u00000000-0000-0000-0000-000000000000", - "~:x": 636.9999854560631, - "~:selrect": { - "~#rect": { - "~:x": 636.9999854560631, - "~:y": 85.00000137090683, - "~:width": 36.99999976158142, - "~:height": 17.00000810623169, - "~:x1": 636.9999854560631, - "~:y1": 85.00000137090683, - "~:x2": 673.9999852176445, - "~:y2": 102.00000947713852 - } - }, - "~:flip-x": null, - "~:height": 17.00000810623169, - "~:flip-y": null - } - } - }, - "~:id": "~ub3e5731a-c295-801d-8006-3fc33c3b1b14", - "~:name": "Page 1" - } -} diff --git a/frontend/playwright/data/design/update-file-11177.json b/frontend/playwright/data/design/update-file-11177.json deleted file mode 100644 index f6f45ead47..0000000000 --- a/frontend/playwright/data/design/update-file-11177.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "~:revn": 7, - "~:lagged": [ - { - "~:id": "~u5ec9cb0b-596f-80d7-8006-40fa6f2e6342", - "~:revn": 8, - "~:file-id": "~ub3e5731a-c295-801d-8006-3fc33c3b1b13", - "~:session-id": "~uf4ff412c-70fb-8020-8006-40fa0785fd63", - "~:changes": [] - } - ] -} \ No newline at end of file diff --git a/frontend/playwright/ui/specs/design-tab.spec.js b/frontend/playwright/ui/specs/design-tab.spec.js index 4ea04c0772..1774b4f9b3 100644 --- a/frontend/playwright/ui/specs/design-tab.spec.js +++ b/frontend/playwright/ui/specs/design-tab.spec.js @@ -236,12 +236,7 @@ test("BUG 11177 - Font size input not showing 'mixed' when needed", async ({ }) => { const workspace = new WorkspacePage(page); await workspace.setupEmptyFile(); - await workspace.mockRPC( - "get-file-fragment?file-id=*&fragment-id=*", - "design/get-file-fragment-11177.json", - ); - await workspace.mockRPC("update-file?id=*", "design/update-file-11177.json"); - await workspace.mockRPC("get-file?id=*", "design/get-file-11177.json"); + await workspace.mockRPC(/get\-file\?/, "design/get-file-11177.json"); await workspace.goToWorkspace({ fileId: "b3e5731a-c295-801d-8006-3fc33c3b1b13",