Skip to content

Commit

Permalink
user login
Browse files Browse the repository at this point in the history
  • Loading branch information
ABS RAKIB committed May 11, 2024
1 parent e0ebd18 commit 4c70340
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,21 @@ const {defineConfig} = require("cypress");
const {beforeRunHook, afterRunHook} = require('cypress-mochawesome-reporter/lib');

module.exports = defineConfig({
//screenshotsFolder: 'cypress/screenshots',
//videosFolder: 'cypress/videos',
//reporter: 'mochawesome',
screenshotsFolder: 'cypress/screenshots',
videosFolder: 'cypress/videos',
reporter: 'cypress-mochawesome-reporter', reporterOptions: {
charts: true,
reportPageTitle: 'custom-title',
embeddedScreenshots: true,
inlineAssets: true,
saveAllAttempts: false,
}, //video: true,
//screenshotOnRunFailure: true,
},
video: true,
screenshotOnRunFailure: true,

env: {
// codeCoverage: {
// url: 'http://localhost:3000/__coverage__',
// },
}, projectId: '5r89t6', e2e: {
env: {}, projectId: '5r89t6', e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
require('cypress-mochawesome-reporter/plugin')(on);
on('before:run', async (details) => {
console.log('override before:run');
Expand All @@ -30,9 +27,6 @@ module.exports = defineConfig({
console.log('override after:run');
await afterRunHook();
});
// implement node event listeners here
//require('@cypress/code-coverage/task')(on, config)
//on('file:preprocessor', require('@cypress/code-coverage/use-babelrc'))
},
},
});

0 comments on commit 4c70340

Please sign in to comment.