📜  Cypress 在重试 50 秒后未能连接到 Chrome DevTools 协议. - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:53.627000             🧑  作者: Mango

代码示例1
try below code in Plugins/index.js 

module.exports = (on, config) => {
  on('before:browser:launch', (browser, launchOptions) => {
    if (browser.name === 'chrome' && browser.isHeadless) {
      launchOptions.args.push('--disable-gpu');
      return launchOptions
    }
  });
}