mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05:00
🐛 Fix workspace rect drawing test
This commit is contained in:
parent
677b28218e
commit
575873eba7
2 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ export default defineConfig({
|
||||||
/* Retry on CI only */
|
/* Retry on CI only */
|
||||||
retries: process.env.CI ? 2 : 0,
|
retries: process.env.CI ? 2 : 0,
|
||||||
/* Opt out of parallel tests on CI. */
|
/* Opt out of parallel tests on CI. */
|
||||||
workers: process.env.CI ? 4 : undefined,
|
workers: process.env.CI ? 1 : 1,
|
||||||
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
||||||
reporter: "html",
|
reporter: "html",
|
||||||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
||||||
|
|
|
@ -35,6 +35,6 @@ test.skip("User draws a rect", async ({ page }) => {
|
||||||
await workspacePage.clickWithDragViewportAt(128, 128, 200, 100);
|
await workspacePage.clickWithDragViewportAt(128, 128, 200, 100);
|
||||||
|
|
||||||
const shape = await workspacePage.rootShape.locator("rect");
|
const shape = await workspacePage.rootShape.locator("rect");
|
||||||
expect(shape).toHaveAttribute("width", "200");
|
await expect(shape).toHaveAttribute("width", "200");
|
||||||
expect(shape).toHaveAttribute("height", "100");
|
await expect(shape).toHaveAttribute("height", "100");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue