diff --git a/.github/workflows/playwright-visual-ci.yml b/.github/workflows/playwright-visual-ci.yml index 12da7cc1..46b55e90 100644 --- a/.github/workflows/playwright-visual-ci.yml +++ b/.github/workflows/playwright-visual-ci.yml @@ -36,13 +36,13 @@ jobs: - name: Install Playwright Browsers run: npx playwright install --with-deps - # - name: Run Personal server - # run: npm run start & - - name: Build project - run: npm run build + - name: Run server and test + run: | + npm run serve & + npm run test - - name: Run Playwright tests - run: npm run test + # - name: Run Playwright tests + # run: npm run test - uses: actions/upload-artifact@v3 if: always() diff --git a/packages/web-new/playwright.config.js b/packages/web-new/playwright.config.js index 829b8dd6..e681cab7 100644 --- a/packages/web-new/playwright.config.js +++ b/packages/web-new/playwright.config.js @@ -64,9 +64,9 @@ module.exports = defineConfig({ ], /* Run your local dev server before starting the tests */ - webServer: { - command: 'npm run serve', - url: 'http://127.0.0.1:5100', - reuseExistingServer: !process.env.CI, - }, + // webServer: { + // command: 'npm run serve', + // url: 'http://127.0.0.1:5100', + // reuseExistingServer: !process.env.CI, + // }, }); diff --git a/packages/web-new/tests/test.spec.js b/packages/web-new/tests/test.spec.js index 3a033335..c3181837 100644 --- a/packages/web-new/tests/test.spec.js +++ b/packages/web-new/tests/test.spec.js @@ -14,7 +14,7 @@ ********************************************************************************/ const { test, expect } = require('@playwright/test'); -//Open the playground app before any test is runned +//Open the playground app before any test is ran test.beforeEach(async ({ page }) => { await page.goto('/') });