Skip to content

Commit

Permalink
no parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
maybeast committed Aug 1, 2024
1 parent ab027f9 commit 6e282ad
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 42 deletions.
1 change: 1 addition & 0 deletions e2e/chainSwaps.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@ test.describe("Chain swap", () => {

await elementsSendToAddress(sendAddress, sendAmount);
await generateLiquidBlock();
// TODO: verify amounts
});
});
84 changes: 42 additions & 42 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
import { defineConfig, devices } from '@playwright/test';
import { defineConfig, devices } from "@playwright/test";

/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './e2e',
/* Run tests in files in parallel */
fullyParallel: true,
/* 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,
/* 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. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: 'https://localhost:4173',
ignoreHTTPSErrors: true,
testDir: "./e2e",
/* Run tests in files in parallel */
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,
/* 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. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: "https://localhost:4173",
ignoreHTTPSErrors: true,

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
headless: true,
trace: 'on-first-retry',
},
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
headless: true,
trace: "on-first-retry",
},

/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
contextOptions: {
// chromium-specific permissions
permissions: ['clipboard-read', 'clipboard-write'],
/* Configure projects for major browsers */
projects: [
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
contextOptions: {
// chromium-specific permissions
permissions: ["clipboard-read", "clipboard-write"],
},
},
},
},
},

/*
/*
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
*/
],
],

/* Run your local dev server before starting the tests */
webServer: {
command: 'npm run build && npm run preview',
port: 4173,
reuseExistingServer: !process.env.CI,
stdout: 'pipe',
stderr: 'pipe',
},
/* Run your local dev server before starting the tests */
webServer: {
command: "npm run build && npm run preview",
port: 4173,
reuseExistingServer: !process.env.CI,
stdout: "pipe",
stderr: "pipe",
},
});

0 comments on commit 6e282ad

Please sign in to comment.