npm run prettier-fix

This commit is contained in:
Marc Abramowitz 2025-06-06 18:44:27 -07:00
commit f06a6e1fb7

View file

@ -1,10 +1,10 @@
import { defineConfig, devices } from '@playwright/test'; import { defineConfig, devices } from "@playwright/test";
/** /**
* @see https://playwright.dev/docs/test-configuration * @see https://playwright.dev/docs/test-configuration
*/ */
export default defineConfig({ export default defineConfig({
testDir: './e2e', testDir: "./e2e",
/* Run tests in files in parallel */ /* Run tests in files in parallel */
fullyParallel: true, fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */ /* Fail the build on CI if you accidentally left test.only in the source code. */
@ -14,43 +14,44 @@ export default defineConfig({
/* Opt out of parallel tests on CI. */ /* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined, workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */ /* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: [ reporter: [["html", { outputFolder: "playwright-report" }], ["line"]],
['html', { outputFolder: 'playwright-report' }],
['line']
],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: { use: {
/* Base URL to use in actions like `await page.goto('/')`. */ /* Base URL to use in actions like `await page.goto('/')`. */
baseURL: 'http://localhost:6274', baseURL: "http://localhost:6274",
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry', trace: "on-first-retry",
/* Take screenshots on failure */ /* Take screenshots on failure */
screenshot: 'on', screenshot: "on",
// screenshot: 'only-on-failure', // screenshot: 'only-on-failure',
/* Record video on failure */ /* Record video on failure */
video: 'retain-on-failure', video: "retain-on-failure",
}, },
/* Configure projects for major browsers */ /* Configure projects for major browsers */
projects: [ projects: [
{ {
name: 'chromium', name: "chromium",
use: { ...devices['Desktop Chrome'] }, use: { ...devices["Desktop Chrome"] },
}, },
{ {
name: 'firefox', name: "firefox",
use: { ...devices['Desktop Firefox'] }, use: { ...devices["Desktop Firefox"] },
}, },
// Skip WebKit on macOS due to compatibility issues // Skip WebKit on macOS due to compatibility issues
...(process.platform !== 'darwin' ? [{ ...(process.platform !== "darwin"
name: 'webkit', ? [
use: { ...devices['Desktop Safari'] }, {
}] : []), name: "webkit",
use: { ...devices["Desktop Safari"] },
},
]
: []),
/* Test against mobile viewports. */ /* Test against mobile viewports. */
// { // {
@ -79,4 +80,4 @@ export default defineConfig({
// url: 'http://127.0.0.1:6274', // url: 'http://127.0.0.1:6274',
// reuseExistingServer: !process.env.CI, // reuseExistingServer: !process.env.CI,
// }, // },
}); });