Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

disable parallel tests

ThieryMichelc12709e01062
diff --git a/playwright.config.ts b/playwright.config.ts
index a0bc446c..da9ccaa8 100644
--- a/playwright.config.ts
+++ b/playwright.config.ts
@@ -16,13 +16,13 @@ dotenv.config({ path: path.resolve(__dirname, ".env.e2e") });
export default defineConfig({
testDir: "./e2e",
/* Run tests in files in parallel */
- fullyParallel: true,
+ fullyParallel: false,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
- /* Opt out of parallel tests on CI. */
- workers: process.env.CI ? 1 : undefined,
+ /* No parallel tests on CI as we depends on the same db. */
+ workers: 1,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: "html",
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
@@ -37,16 +37,15 @@ export default defineConfig({
/* Configure projects for major browsers */
projects: [
- {
- name: "chromium",
- use: { ...devices["Desktop Chrome"] },
- },
-
- {
- name: "firefox",
- use: { ...devices["Desktop Firefox"] },
- },
+ // {
+ // name: "chromium",
+ // use: { ...devices["Desktop Chrome"] },
+ // },
+ // {
+ // name: "firefox",
+ // use: { ...devices["Desktop Firefox"] },
+ // },
{
name: "webkit",
use: { ...devices["Desktop Safari"] },
@@ -57,10 +56,10 @@ export default defineConfig({
name: "Mobile Chrome",
use: { ...devices["Pixel 5"] },
},
- {
- name: "Mobile Safari",
- use: { ...devices["iPhone 12"] },
- },
+ // {
+ // name: "Mobile Safari",
+ // use: { ...devices["iPhone 12"] },
+ // },
/* Test against branded browsers. */
// {
@@ -72,11 +71,4 @@ export default defineConfig({
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
// },
],
-
- /* Run your local dev server before starting the tests */
- // webServer: {
- // command: 'npm run start',
- // url: 'http://localhost:3000',
- // reuseExistingServer: !process.env.CI,
- // },
});