Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-stasiak committed Jul 4, 2024
1 parent 810935b commit 56e8fb4
Show file tree
Hide file tree
Showing 15 changed files with 276 additions and 237 deletions.
36 changes: 21 additions & 15 deletions e2e-tests/ts-client/app/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig, devices } from '@playwright/test';
import { defineConfig, devices } from "@playwright/test";

/**
* Read environment variables from file.
Expand All @@ -10,7 +10,7 @@ import { defineConfig, devices } from '@playwright/test';
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: '../.',
testDir: "../.",
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
Expand All @@ -21,32 +21,38 @@ export default defineConfig({
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: [
['list'],
['html', { outputFolder: '../../../playwright-report/ts-client-e2e', open: "never" }]
["list"],
[
"html",
{
outputFolder: "../../../playwright-report/ts-client-e2e",
open: "never",
},
],
],
/* 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: 'http://localhost:5173',
baseURL: "http://localhost:5173",

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

extraHTTPHeaders: {
Authorization: 'Bearer development',
Authorization: "Bearer development",
},
},

/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
name: "chromium",
use: {
...devices['Desktop Chrome'],
...devices["Desktop Chrome"],
launchOptions: {
args: [
'--use-fake-ui-for-media-stream',
'--use-fake-device-for-media-stream',
"--use-fake-ui-for-media-stream",
"--use-fake-device-for-media-stream",
],
// default Google Chrome path on MacOS
// executablePath: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
Expand All @@ -57,11 +63,11 @@ export default defineConfig({

/* Run your local dev server before starting the tests */
webServer: {
command: 'yarn run dev',
url: 'http://localhost:5173',
command: "yarn run dev",
url: "http://localhost:5173",
reuseExistingServer: !process.env.CI,
},

globalSetup: '../setup/setupFishjam',
globalTeardown: '../setup/teardownFishjam',
globalSetup: "../setup/setupFishjam",
globalTeardown: "../setup/teardownFishjam",
});
Loading

0 comments on commit 56e8fb4

Please sign in to comment.