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
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
View File

@@ -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

View File

@@ -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;

View File

@@ -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,
};