From 2589c44cd0e5eb4ebaca2566234937d21f022b2a Mon Sep 17 00:00:00 2001 From: Sergio Eduardo Castro Ceballos <72516762+SergioCasCeb@users.noreply.github.com> Date: Fri, 5 Jan 2024 07:23:24 +0100 Subject: [PATCH] adding a timeout --- packages/web-new/playwright.config.js | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/packages/web-new/playwright.config.js b/packages/web-new/playwright.config.js index 9f446c12..bb823424 100644 --- a/packages/web-new/playwright.config.js +++ b/packages/web-new/playwright.config.js @@ -15,20 +15,6 @@ // @ts-check const { defineConfig, devices } = require('@playwright/test'); -//server -const express = require('express') -const port = 5100 - -const app = express() - -//Middleware -app.use(express.json()) -app.use(express.urlencoded({extended: false})) - -app.use('/', express.static('./dist/')) - -app.listen(port, () => console.log(`Running siteTest on port ${port}`)) - const isCI = process.env.CI; module.exports = defineConfig({ @@ -79,9 +65,10 @@ module.exports = defineConfig({ ], /* Run your local dev server before starting the tests */ - // webServer: { - // command: isCI ? '' : 'npm run serve', - // url: isCI ? '' : 'http://127.0.0.1:5100', - // reuseExistingServer: !isCI, - // } + webServer: { + command: 'npm run serve', + url: 'http://127.0.0.1:5100', + timeout: 120 * 1000, + reuseExistingServer: !isCI, + } });