From 635a9fc4bb0d43fa6c4c9078f0aee09e46aa3a55 Mon Sep 17 00:00:00 2001 From: Philipp Melab Date: Tue, 13 Aug 2024 14:10:04 +0200 Subject: [PATCH] test(SLB-354): test command chaining --- packages/npm/@amazeelabs/image/package.json | 7 ++++--- packages/npm/@amazeelabs/image/playwright.config.ts | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/npm/@amazeelabs/image/package.json b/packages/npm/@amazeelabs/image/package.json index 775b67ee9..1eb260ebc 100644 --- a/packages/npm/@amazeelabs/image/package.json +++ b/packages/npm/@amazeelabs/image/package.json @@ -20,11 +20,12 @@ "build": "pnpm prep", "test:static": "tsc --noEmit && eslint \"**/*.{ts,tsx,js,jsx}\" --ignore-path=\"./.eslintignore\"", "test:unit": "vitest run", - "test:integration": "playwright test", + "test:integration": "pnpm test:build && pnpm playwright test", "test:cmd": "cd test && ../node_modules/waku/cli.js", "test:dev": "pnpm test:cmd dev", - "test:build": "pnpm test:cmd build", - "test:start": "pnpm start-test test:dam http://localhost:8889/goats.jpg test:build && pnpm test:cmd start", + "test:build:waku": "pnpm test:cmd build", + "test:build": "pnpm start-test test:dam http://localhost:8889/goats.jpg test:build:waku", + "test:start": "pnpm test:cmd start", "test:dam": "pnpm serve -p 8889 test/public", "test:all": "pnpm test:unit && pnpm test:static && pnpm test:integration" }, diff --git a/packages/npm/@amazeelabs/image/playwright.config.ts b/packages/npm/@amazeelabs/image/playwright.config.ts index dcb9327cc..bf4e05c4b 100644 --- a/packages/npm/@amazeelabs/image/playwright.config.ts +++ b/packages/npm/@amazeelabs/image/playwright.config.ts @@ -33,13 +33,13 @@ export default defineConfig({ /* Run your local dev server before starting the tests */ webServer: [ { - command: 'pnpm test:start', - url: 'http://127.0.0.1:8080/server', + command: 'pnpm test:dam', + url: 'http://127.0.0.1:8889/goats.jpg', reuseExistingServer: !process.env.CI, }, { - command: 'pnpm test:dam', - url: 'http://127.0.0.1:8889/goats.jpg', + command: 'pnpm test:start', + url: 'http://127.0.0.1:8080/client', reuseExistingServer: !process.env.CI, }, ],