]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/cypress/plugins/index.js
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / plugins / index.js
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 (file)
index 0000000..0f9934c
--- /dev/null
@@ -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;
+    }
+  });
+};