Move Cypress directory and convert it to JavaScript (#2170)

This commit is contained in:
Louis Lam
2022-10-04 22:23:57 +08:00
committed by GitHub
parent 16b2cf0e89
commit afbc283423
18 changed files with 75 additions and 75 deletions

26
config/cypress.config.js Normal file
View File

@@ -0,0 +1,26 @@
const { defineConfig } = require("cypress");
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
},
fixturesFolder: "test/cypress/fixtures",
screenshotsFolder: "test/cypress/screenshots",
videosFolder: "test/cypress/videos",
downloadsFolder: "test/cypress/downloads",
supportFile: "test/cypress/support/e2e.js",
baseUrl: "http://localhost:3002",
defaultCommandTimeout: 10000,
pageLoadTimeout: 60000,
viewportWidth: 1920,
viewportHeight: 1080,
specPattern: [
"test/cypress/e2e/setup.cy.js",
"test/cypress/e2e/**/*.js"
],
},
env: {
baseUrl: "http://localhost:3002",
},
});