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
|
- 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
1
.gitignore
vendored
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user