fixed cypress config w/ burnettk

This commit is contained in:
jasquat 2023-01-09 16:00:02 -05:00
parent c18eafa812
commit 73302c9ef6

View File

@ -24,12 +24,9 @@ const deleteVideosOnSuccess = (on) => {
}) })
} }
module.exports = defineConfig({ const cypressConfig = {
projectId: 'crax1q', projectId: 'crax1q',
// since it's slow
videoCompression: useVideoCompression,
videoUploadOnPasses: false, videoUploadOnPasses: false,
chromeWebSecurity: false, chromeWebSecurity: false,
e2e: { e2e: {
@ -45,4 +42,11 @@ module.exports = defineConfig({
// https://github.com/cypress-io/cypress/issues/2353 // https://github.com/cypress-io/cypress/issues/2353
// https://docs.cypress.io/guides/core-concepts/interacting-with-elements#Scrolling // https://docs.cypress.io/guides/core-concepts/interacting-with-elements#Scrolling
scrollBehavior: "center", scrollBehavior: "center",
}); }
if (!process.env.CYPRESS_RECORD_KEY) {
// since it's slow
cypressConfig.videoCompression = false
}
module.exports = defineConfig(cypressConfig)