mirror of
https://github.com/penpot/penpot.git
synced 2025-07-10 13:57:17 +02:00
✨ Add tests for exif rotated images
This commit is contained in:
parent
833546d754
commit
e442d8adad
4 changed files with 804 additions and 0 deletions
|
@ -113,3 +113,28 @@ test("Renders shapes taking into account blend modes", async ({ page }) => {
|
|||
|
||||
await expect(workspace.canvas).toHaveScreenshot();
|
||||
});
|
||||
|
||||
test("Renders shapes with exif rotated images fills and strokes", async ({
|
||||
page,
|
||||
}) => {
|
||||
const workspace = new WasmWorkspacePage(page);
|
||||
await workspace.setupEmptyFile();
|
||||
await workspace.mockFileMediaAsset(
|
||||
[
|
||||
"27270c45-35b4-80f3-8006-63a39cf292e7",
|
||||
"27270c45-35b4-80f3-8006-63a41d147866",
|
||||
"27270c45-35b4-80f3-8006-63a43dc4984b",
|
||||
"27270c45-35b4-80f3-8006-63a3ea82557f"
|
||||
],
|
||||
"render-wasm/assets/landscape.jpg",
|
||||
);
|
||||
await workspace.mockGetFile("render-wasm/get-file-shapes-exif-rotated-fills.json");
|
||||
|
||||
await workspace.goToWorkspace({
|
||||
id: "27270c45-35b4-80f3-8006-63a3912bdce8",
|
||||
pageId: "27270c45-35b4-80f3-8006-63a3912bdce9",
|
||||
});
|
||||
await workspace.waitForFirstRender();
|
||||
|
||||
await expect(workspace.canvas).toHaveScreenshot();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue