Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Headless doesn't work #3

Open
diego-s-lopez opened this issue Jul 20, 2020 · 1 comment
Open

Headless doesn't work #3

diego-s-lopez opened this issue Jul 20, 2020 · 1 comment

Comments

@diego-s-lopez
Copy link

diego-s-lopez commented Jul 20, 2020

Hi! If i write 'headless: false' using this preset, the browser doesn't show up. If i chanage this preset, and use "jest-playwright-preset" instead, the "headless" config works.

// package.json
 {
  "scripts": {
    "test": "jest"
  },
  "devDependencies": {
    "@types/jest": "^26.0.4",
    "jest": "^26.1.0",
    "jest-playwright-jsdom": "0.0.3",
    "jest-playwright-preset": "1.2.1",
    "playwright": "1.2.1"
  },
  "jest": {
    "verbose": true,
    "preset": "jest-playwright-jsdom"
  }
}

// jest-playwright.config.js:
module.exports = {
  browsers: ["chromium", "firefox", "webkit"],
  exitOnPageError: false,
  launchOptions: {
    headless: false
  },
};

Thank you!

@mmarkelov
Copy link
Member

@diego-s-lopez thank you for you report. Seems like this came from outdated jest-playwright. I just bump it and published jest-playwright-jsdom@0.0.4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants