diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b2adb432b3..5584a7eede 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -52,12 +52,13 @@ jobs: - name: E2E Tests run: yarn test:e2e --bail - # - uses: actions/upload-artifact@v2 - # if: always() - # with: - # name: playwright-report - # path: playwright-report/ - # retention-days: 30 + - uses: actions/upload-artifact@v3 + if: always() + with: + name: test-results + path: test-results/ + retention-days: 30 + install_npm: runs-on: ubuntu-latest strategy: diff --git a/.gitignore b/.gitignore index a3149d8f28..e57314eb50 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ coverage package-lock.json dist .idea +test-results # Created by https://www.gitignore.io/api/node,macos,windows,webstorm,sublimetext,visualstudiocode diff --git a/playwright.config.ts b/playwright.config.ts index 219458e4af..73cd5b7dfc 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -5,6 +5,11 @@ const config: PlaywrightTestConfig = { testDir: 'test', testMatch: '*e2e.spec.ts', workers: 999, - timeout: 600000, + timeout: 180000, // 3 minutes + use: { + video: 'retain-on-failure', + trace: 'retain-on-failure', + screenshot: 'only-on-failure', + }, }; export default config; diff --git a/test/buildConfig.ts b/test/buildConfig.ts index 166275b57c..bd5693216e 100644 --- a/test/buildConfig.ts +++ b/test/buildConfig.ts @@ -5,6 +5,10 @@ export function buildConfig(config?: Partial): Promise const [name] = process.argv.slice(2); const baseConfig: Config = { telemetry: false, + rateLimit: { + window: 15 * 60 * 100, // 15min default, + max: 9999999999, + }, ...config, };