mirror of
https://github.com/maputnik/editor.git
synced 2026-07-09 15:37:28 +00:00
be9456d11b
## Launch Checklist Renames the e2e test and reduces changes as a preparation step from playwright in the following PR: - #1988 This is to keep as much history as possible. <img width="1907" height="933" alt="image" src="https://github.com/user-attachments/assets/b52075b3-eb3b-45dc-93dc-8c5e9cfd35dd" /> - [x] Briefly describe the changes in this PR. --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
import { defineConfig } from "cypress";
|
|
import { createRequire } from "module";
|
|
const require = createRequire(import.meta.url);
|
|
|
|
export default defineConfig({
|
|
env: {
|
|
codeCoverage: {
|
|
exclude: "cypress/**/*.*",
|
|
},
|
|
},
|
|
|
|
e2e: {
|
|
specPattern: "e2e/**/*.spec.ts",
|
|
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",
|
|
scrollBehavior: "center",
|
|
retries: {
|
|
runMode: 2,
|
|
openMode: 0,
|
|
},
|
|
},
|
|
|
|
component: {
|
|
devServer: {
|
|
framework: "react",
|
|
bundler: "vite",
|
|
},
|
|
},
|
|
});
|