You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{addCucumberPreprocessorPlugin}from'@badeball/cypress-cucumber-preprocessor';import{createEsbuildPlugin}from'@badeball/cypress-cucumber-preprocessor/esbuild';importcreateBundlerfrom'@bahmutov/cypress-esbuild-preprocessor';import{defineConfig}from'cypress';importcypressOnFixfrom'cypress-on-fix';exportdefaultdefineConfig({viewportHeight: 1080,viewportWidth: 1920,retries: {openMode: 0,runMode: 2},screenshotOnRunFailure: true,video: true,trashAssetsBeforeRuns: true,watchForFileChanges: false,defaultCommandTimeout: 6000,env: {omitFiltered: true,filterSpecs: true,},e2e: {testIsolation: false,specPattern: ['cypress/e2e/*.feature',// Include all .feature files'cypress/e2e/*.cy.ts',// Include all .cy.ts files],asyncsetupNodeEvents(cypressOn: Cypress.PluginEvents,config: Cypress.PluginConfigOptions,): Promise<Cypress.PluginConfigOptions>{// Apply cypress-on-fix to handle event issues https://github.com/bahmutov/cypress-on-fixconston: any=cypressOnFix(cypressOn);awaitaddCucumberPreprocessorPlugin(on,config);// Add cucumber preprocessor to digest the .feature files and change them to .json('file:preprocessor',createBundler({plugins: [createEsbuildPlugin(config)],}),);// Change browser window size when cypress:open is runon('before:browser:launch',(browser: any,launchOptions: any)=>{if(browser.name==='chrome'){launchOptions.args.push('--window-size=2000,2400');}returnlaunchOptions;});returnconfig;},},});
But unfortunately, even with this fix, I get errors where the "other plugins" are overwriting event handlers:
Any help would be appreciated, thank you
The text was updated successfully, but these errors were encountered:
Hello
Below is the code for my cypress config:
But unfortunately, even with this fix, I get errors where the "other plugins" are overwriting event handlers:
Any help would be appreciated, thank you
The text was updated successfully, but these errors were encountered: