Yuki Takei 1 год назад
Родитель
Сommit
80448b2424
1 измененных файлов с 5 добавлено и 6 удалено
  1. 5 6
      apps/app/playwright.config.ts

+ 5 - 6
apps/app/playwright.config.ts

@@ -10,6 +10,8 @@ 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({
+  timeout: 7 * 1000,
+
   testDir: './playwright',
   testDir: './playwright',
   outputDir: './playwright/output',
   outputDir: './playwright/output',
   /* Run tests in files in parallel */
   /* Run tests in files in parallel */
@@ -38,6 +40,9 @@ export default defineConfig({
 
 
     /* 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',
+
+    viewport: { width: 1400, height: 1024 },
+
     // Use prepared auth state.
     // Use prepared auth state.
     storageState: 'playwright/.auth/user.json',
     storageState: 'playwright/.auth/user.json',
   },
   },
@@ -86,10 +91,4 @@ export default defineConfig({
     // },
     // },
   ],
   ],
 
 
-  /* Run your local dev server before starting the tests */
-  // webServer: {
-  //   command: 'npm run start',
-  //   url: 'http://127.0.0.1:3000',
-  //   reuseExistingServer: !process.env.CI,
-  // },
 });
 });