ci: playwright artifacts (#2201)

* ci: playwright report

* chore: update playwright report location

* ci: trace file only on failure

* ci: reduce test timeout

* test: up the rateLimit
This commit is contained in:
Elliot DeNolf
2023-02-27 21:58:11 -05:00
committed by GitHub
parent ce3bb96ff7
commit b0b82e1f57
4 changed files with 18 additions and 7 deletions

View File

@@ -52,12 +52,13 @@ jobs:
- name: E2E Tests - name: E2E Tests
run: yarn test:e2e --bail run: yarn test:e2e --bail
# - uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
# if: always() if: always()
# with: with:
# name: playwright-report name: test-results
# path: playwright-report/ path: test-results/
# retention-days: 30 retention-days: 30
install_npm: install_npm:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:

1
.gitignore vendored
View File

@@ -2,6 +2,7 @@ coverage
package-lock.json package-lock.json
dist dist
.idea .idea
test-results
# Created by https://www.gitignore.io/api/node,macos,windows,webstorm,sublimetext,visualstudiocode # Created by https://www.gitignore.io/api/node,macos,windows,webstorm,sublimetext,visualstudiocode

View File

@@ -5,6 +5,11 @@ const config: PlaywrightTestConfig = {
testDir: 'test', testDir: 'test',
testMatch: '*e2e.spec.ts', testMatch: '*e2e.spec.ts',
workers: 999, workers: 999,
timeout: 600000, timeout: 180000, // 3 minutes
use: {
video: 'retain-on-failure',
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
},
}; };
export default config; export default config;

View File

@@ -5,6 +5,10 @@ export function buildConfig(config?: Partial<Config>): Promise<SanitizedConfig>
const [name] = process.argv.slice(2); const [name] = process.argv.slice(2);
const baseConfig: Config = { const baseConfig: Config = {
telemetry: false, telemetry: false,
rateLimit: {
window: 15 * 60 * 100, // 15min default,
max: 9999999999,
},
...config, ...config,
}; };