X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Ffrontend%2Fcypress%2Fplugins%2Findex.js;fp=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Ffrontend%2Fcypress%2Fplugins%2Findex.js;h=0f9934c9897bdf056a02b01347d0e1bb9967cc2e;hb=f67539c23b11f3b8a2ecaeeddf7a403ae1c442a8;hp=0000000000000000000000000000000000000000;hpb=64a4c04e6850c6d9086e4c37f57c4eada541b05e;p=ceph.git diff --git a/ceph/src/pybind/mgr/dashboard/frontend/cypress/plugins/index.js b/ceph/src/pybind/mgr/dashboard/frontend/cypress/plugins/index.js new file mode 100644 index 000000000..0f9934c98 --- /dev/null +++ b/ceph/src/pybind/mgr/dashboard/frontend/cypress/plugins/index.js @@ -0,0 +1,8 @@ +module.exports = (on, _config) => { + on('before:browser:launch', (browser, launchOptions) => { + if (browser.name === 'chrome' && browser.isHeadless) { + launchOptions.args.push('--disable-gpu'); + return launchOptions; + } + }); +};