Skip to content

Commit

Permalink
Run tests only fullyParallel on ci and snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
mpanne committed Jan 22, 2025
1 parent 037d7e6 commit c483956
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/dito/tests/playwright-ci.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dotenv.config({ path: path.resolve(__dirname, "../", ".env.test") });

const config: PlaywrightTestConfig = {
...configDefault,
fullyParallel: true,
projects: projectsCi,
};

Expand Down
1 change: 1 addition & 0 deletions packages/dito/tests/playwright-snapshot.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const mobileHeight = 3200;

const config: PlaywrightTestConfig = {
...configDefault,
fullyParallel: true,
projects: [
{
name: "Desktop Chrome",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dotenv.config({ path: path.resolve(__dirname, "../", ".env.test") });

const config: PlaywrightTestConfig = {
...configDefault,
fullyParallel: true,
projects: projectsCi,
};

Expand Down
1 change: 0 additions & 1 deletion playwright.config-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export const projectsCi = projects.filter(
);

const config: PlaywrightTestConfig = {
fullyParallel: true,
forbidOnly: !!process.env.CI, // Fail the build on CI if test.only is present
retries: process.env.CI ? 1 : 0, // Retry on CI only
use: {
Expand Down

0 comments on commit c483956

Please sign in to comment.