Skip to content

Commit

Permalink
fix playwrite config
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSavelyev committed Dec 11, 2024
1 parent 2cef06a commit 7b081a2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ketcher-autotests/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
import path from 'path';

dotenv.config({ path: path.resolve(__dirname, '.env') });
// dotenv.config();
/**
* See https://playwright.dev/docs/test-configuration.
*/
Expand Down Expand Up @@ -104,7 +105,7 @@ const config: PlaywrightTestConfig = {
retries: isCI ? MAX_NUMBER_OF_RETRIES : 0,
/* Opt out of parallel tests on CI. */
// eslint-disable-next-line no-magic-numbers
workers: process.env.CI ? MIN_AMOUNT_OF_WORKERS : os.cpus().length,
workers: isCI ? os.cpus().length : MIN_AMOUNT_OF_WORKERS,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: [
[
Expand All @@ -114,7 +115,12 @@ const config: PlaywrightTestConfig = {
},
],
['line'],
// ['./reporters/TimeReporter.ts'],
// [
// 'json',
// {
// outputFile: 'results.json'
// }
// ]
],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
Expand Down

0 comments on commit 7b081a2

Please sign in to comment.