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:
13
.github/workflows/tests.yml
vendored
13
.github/workflows/tests.yml
vendored
@@ -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:
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -5,6 +5,10 @@ export function buildConfig(config?: Partial<Config>): Promise<SanitizedConfig>
|
||||
const [name] = process.argv.slice(2);
|
||||
const baseConfig: Config = {
|
||||
telemetry: false,
|
||||
rateLimit: {
|
||||
window: 15 * 60 * 100, // 15min default,
|
||||
max: 9999999999,
|
||||
},
|
||||
...config,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user