mirror of
https://github.com/maputnik/editor.git
synced 2026-06-19 21:57:34 +00:00
Fix e2e, use nvmrc where needed (#1684)
Updates CI to use nvmrc where needed. Fix e2e test according to configuration in maplibre-gl-js for webgl correct definitions in chrome.
This commit is contained in:
@@ -13,6 +13,15 @@ export default defineConfig({
|
||||
setupNodeEvents(on, config) {
|
||||
// implement node event listeners here
|
||||
require("@cypress/code-coverage/task")(on, config);
|
||||
on("before:browser:launch", (browser, launchOptions) => {
|
||||
if (browser.family !== "chromium") {
|
||||
return;
|
||||
}
|
||||
launchOptions.args.push("--disable-gpu");
|
||||
launchOptions.args.push("--enable-features=AllowSwiftShaderFallback,AllowSoftwareGLFallbackDueToCrashes");
|
||||
launchOptions.args.push("--enable-unsafe-swiftshader");
|
||||
return launchOptions;
|
||||
});
|
||||
return config;
|
||||
},
|
||||
baseUrl: "http://localhost:8888",
|
||||
|
||||
Reference in New Issue
Block a user