CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
playwright.config.js82 linesDownload Raw Back to cytoscape
1// @ts-check2import { defineConfig, devices } from '@playwright/test';3 4/**5 * Read environment variables from file.6 * https://github.com/motdotla/dotenv7 */8// import dotenv from 'dotenv';9// import path from 'path';10// dotenv.config({ path: path.resolve(__dirname, '.env') });11 12/**13 * @see https://playwright.dev/docs/test-configuration14 */15export default defineConfig({16  testDir: './playwright-tests',17  /* Run tests in files in parallel */18  fullyParallel: false,19  /* Fail the build on CI if you accidentally left test.only in the source code. */20  forbidOnly: !!process.env.CI,21  /* Retry on CI only */22  retries: process.env.CI ? 2 : 0,23  /* Opt out of parallel tests on CI. */24  workers: process.env.CI ? 1 : undefined,25  /* Reporter to use. See https://playwright.dev/docs/test-reporters */26  reporter: 'list',27  /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */28  use: {29    /* Base URL to use in actions like `await page.goto('/')`. */30    // baseURL: 'http://127.0.0.1:3000/playwright-page',31 32    /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */33    trace: 'on-first-retry',34  },35 36  /* Configure projects for major browsers */37  projects: [38    {39      name: 'chromium',40      use: { ...devices['Desktop Chrome'] },41    },42 43    // {44    //   name: 'firefox',45    //   use: { ...devices['Desktop Firefox'] },46    // },47 48    // {49    //   name: 'webkit',50    //   use: { ...devices['Desktop Safari'] },51    // },52 53    /* Test against mobile viewports. */54    // {55    //   name: 'Mobile Chrome',56    //   use: { ...devices['Pixel 5'] },57    // },58    // {59    //   name: 'Mobile Safari',60    //   use: { ...devices['iPhone 12'] },61    // },62 63    /* Test against branded browsers. */64    // {65    //   name: 'Microsoft Edge',66    //   use: { ...devices['Desktop Edge'], channel: 'msedge' },67    // },68    // {69    //   name: 'Google Chrome',70    //   use: { ...devices['Desktop Chrome'], channel: 'chrome' },71    // },72  ],73 74  /* Run your local dev server before starting the tests */75  webServer: {76    command: 'npm run test:playwright:setup',77    url: 'http://127.0.0.1:3333',78    reuseExistingServer: !process.env.CI,79  },80});81 82 
basant307/AI_Governance_Project · CoolFace