const { defineConfig } = require('cypress');

module.exports = defineConfig({
  video: false,
  screenshotOnRunFailure: true,
  e2e: {
    baseUrl: 'http://localhost',
    specPattern: 'cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
    supportFile: 'cypress/support/e2e.js',
    defaultCommandTimeout: 10000,
    pageLoadTimeout: 30000,
    env: {
      wpUser: 'admin',
      wpPassword: 'admin',
      labelEditorPath: '/wp-admin/admin.php?page=plantshop-wc-label-editor',
    },
  },
});
