Skip to content

Commit

Permalink
adding a timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioCasCeb committed Jan 5, 2024
1 parent 55f4685 commit 2589c44
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions packages/web-new/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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,
}
});

0 comments on commit 2589c44

Please sign in to comment.