text: const { setHeadlessWhen } = require("@codeceptjs/configure");
  
  // turn on headless mode when running with HEADLESS=true environment variable
  // export HEADLESS=true && npx codeceptjs run
  setHeadlessWhen(process.env.HEADLESS);
  
  exports.config = {
    tests: "e2e/**/*.spec.js",
    output: "./output",
    helpers: {
      Puppeteer: {
        url: "http://localhost:8083",
        show: true,
        windowSize: "1200x900",
      },
    },
    include: {
      I: "./steps_file.js",
    },
    bootstrap: null,
    mocha: {},
    name: "restaurant-catalogue",
    plugins: {
      pauseOnFail: {},
      retryFailedStep: {
        enabled: true,
      },
      tryTo: {
        enabled: true,
      },
      screenshotOnFail: {
        enabled: true,
      },
    },
  };
  