mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
WIP
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
"nodemon": "^3.1.10",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"p-limit": "^6.2.0",
|
||||
"playwright": "1.52.0",
|
||||
"playwright": "1.56.1",
|
||||
"postcss": "^8.5.4",
|
||||
"postcss-clean": "^1.2.2",
|
||||
"prettier": "3.5.3",
|
||||
|
||||
@@ -21,8 +21,10 @@ export default defineConfig({
|
||||
/* Opt out of parallel tests by default; can be overriden with --workers */
|
||||
workers: 1,
|
||||
/* Timeout for expects (longer in CI) */
|
||||
|
||||
timeout: 40000,
|
||||
expect: {
|
||||
timeout: process.env.CI ? 60000 : 5000,
|
||||
timeout: process.env.CI ? 20000 : 5000,
|
||||
},
|
||||
|
||||
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
||||
@@ -46,6 +48,7 @@ export default defineConfig({
|
||||
name: "default",
|
||||
use: { ...devices["Desktop Chrome"] },
|
||||
testDir: "./playwright/ui/specs",
|
||||
|
||||
},
|
||||
{
|
||||
name: "ds",
|
||||
|
||||
@@ -172,25 +172,27 @@ test.only("User copy paste a variant container", async ({ page }) => {
|
||||
|
||||
const variant = findVariantNoWait(workspacePage, 0);
|
||||
|
||||
// Select the variant container
|
||||
await variant.container.waitFor();
|
||||
|
||||
// Select the variant container
|
||||
await variant.container.click();
|
||||
|
||||
//Copy the variant container
|
||||
// Copy the variant container
|
||||
await workspacePage.page.keyboard.press("Control+c");
|
||||
|
||||
//Paste the variant container
|
||||
// Paste the variant container
|
||||
await workspacePage.clickAt(500, 500);
|
||||
await workspacePage.page.keyboard.press("Control+v");
|
||||
|
||||
const variantOriginal = findVariantNoWait(workspacePage, 1);
|
||||
const variantDuplicate = findVariantNoWait(workspacePage, 0);
|
||||
const variantOriginal = findVariantNoWait(workspacePage, 1);
|
||||
|
||||
// Expand the layers
|
||||
await variantDuplicate.container.waitFor();
|
||||
await variantDuplicate.container.getByRole("button").first().click();
|
||||
await variantDuplicate.container.locator("button").first().click();
|
||||
|
||||
// The variants are valid
|
||||
// await variantOriginal.container.waitFor();
|
||||
await validateVariant(variantOriginal);
|
||||
await validateVariant(variantDuplicate);
|
||||
});
|
||||
|
||||
@@ -4352,7 +4352,7 @@ __metadata:
|
||||
npm-run-all: "npm:^4.1.5"
|
||||
opentype.js: "npm:^1.3.4"
|
||||
p-limit: "npm:^6.2.0"
|
||||
playwright: "npm:1.52.0"
|
||||
playwright: "npm:1.56.1"
|
||||
postcss: "npm:^8.5.4"
|
||||
postcss-clean: "npm:^1.2.2"
|
||||
postcss-modules: "npm:^6.0.1"
|
||||
|
||||
Reference in New Issue
Block a user