Skip to content

Commit

Permalink
feat(e2e): define front and server webservers
Browse files Browse the repository at this point in the history
  • Loading branch information
prastoin committed Jan 17, 2025
1 parent 51af668 commit 9eb5b3c
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions packages/twenty-e2e-testing/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,27 @@ export default defineConfig({
slowMo: 500, // time in milliseconds between each step, better to use it than explicitly define timeout in tests
},
},
webServer: [
// Comment from now as I don't how to get worker's healthcheck
// {
// command: 'npx nx worker twenty-server',
// url: 'http://127.0.0.1:3001',
// timeout: 120 * 1000,
// reuseExistingServer: !process.env.CI,
// },
{
command: 'npx nx start twenty-server',
url: 'http://localhost:3000/healthz',
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
},
{
command: 'npx nx start twenty-front',
url: 'http://localhost:3001',
timeout: 120 * 10000,
reuseExistingServer: !process.env.CI,
}
],
expect: {
timeout: 5000,
},
Expand All @@ -60,30 +81,5 @@ export default defineConfig({
dependencies: ['Login setup'],
testMatch: /authentication\/.+\.e2e-spec\.ts/, // forces to run login setup before running tests from this project - CASE SENSITIVE
},

//{
// name: 'webkit',
// use: { ...devices['Desktop Safari'] },
//},

/* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
// use: { ...devices['Pixel 5'] },
// },
// {
// name: 'Mobile Safari',
// use: { ...devices['iPhone 12'] },
// },

/* Test against branded browsers. */
//{
// name: 'Microsoft Edge',
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
//},
//{
// name: 'Google Chrome',
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
//},
],
});

0 comments on commit 9eb5b3c

Please sign in to comment.