Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slowMo not working #20

Closed
Diokuz opened this issue Mar 26, 2018 · 2 comments
Closed

slowMo not working #20

Diokuz opened this issue Mar 26, 2018 · 2 comments

Comments

@Diokuz
Copy link

Diokuz commented Mar 26, 2018

My root jest-puppeteer.config.js:

const isDev = true

module.exports = {
  server: {
    command: 'node puppeteer/server.js',
    port: 1337,
  },
  launch: {
    // dumpio: true,
    slowMo: 1200,
    headless: !isDev,
    executablePath: isDev ? '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' : undefined,
  },
}

But no slowMo detected: tests are executed as fast as possible, nothing can be observed. Is there any secrets on how to switch on the slowMo flag?

@gregberge
Copy link
Member

I just tested it and it does not work, it should be a Puppeteer issue because, all options specified in launch are passed to Puppeteer.launch, is this option working without Jest Puppeteer?

@k3mayo
Copy link

k3mayo commented Mar 27, 2018

You can also set the slowMo property in the options object parameter for puppeteer.connect. I believe this is missing in the PuppeteerEnvironment class where puppeteer.connect is called.

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

No branches or pull requests

3 participants