1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00
Files
quay/web/cypress.config.ts
jbpratt c27f9b1337 chore: ctrf cypress reporting (#4486)
* chore: set up CTRF cypress reporting

generate and upload cypress test results to PRs using CTRF (common test
report format)

Signed-off-by: Brady Pratt <bpratt@redhat.com>

* chore: set up multi workflow ctrf pr reporting

and simplify the uploading into 2 stages

Signed-off-by: Brady Pratt <bpratt@redhat.com>

---------

Signed-off-by: Brady Pratt <bpratt@redhat.com>
2025-11-07 16:02:37 -06:00

27 lines
741 B
TypeScript

import {defineConfig} from 'cypress';
import {GenerateCtrfReport} from 'cypress-ctrf-json-reporter';
export default defineConfig({
chromeWebSecurity: false, // Required for stripe integration tests
e2e: {
env: {
REACT_QUAY_APP_API_URL: 'http://localhost:8080',
},
baseUrl: 'http://localhost:9000',
video: false,
defaultCommandTimeout: 25000,
retries: 0,
setupNodeEvents(on, config) {
// CTRF JSON reporter for test results
new GenerateCtrfReport({
on,
outputDir: 'cypress/reports',
outputFile: 'ctrf-report.json',
screenshot: true, // Enable base64-encoded screenshots for failed tests
});
},
},
viewportWidth: 1280,
viewportHeight: 800,
});