
* Extract "webhooks & events" to separate page * Create separate /custom-app/ path for custom apps with webhooks * Change all /webhooks/ paths to /custom-apps/ * Update messages * Update generated graphql types * Create findById util * Refactor consts and resolvers for custom app urls * Fix app graphql fragment * Update Miscellaneous icon for Webhooks and Events * Add tests for custom apps utils * Fix dark-mode Miscellaneous icon for Webhooks and Events * adjustments for autotests Co-authored-by: karolm-saleor <karol.macheta@saleor.io>
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
/* eslint-disable no-console */
|
|
const { defineConfig } = require("cypress");
|
|
const fs = require("fs");
|
|
|
|
module.exports = defineConfig({
|
|
projectId: "51ef7c",
|
|
chromeWebSecurity: false,
|
|
defaultCommandTimeout: 20000,
|
|
requestTimeout: 20000,
|
|
viewportWidth: 1400,
|
|
viewportHeight: 660,
|
|
retries: {
|
|
runMode: 2,
|
|
openMode: 1,
|
|
},
|
|
e2e: {
|
|
env: {
|
|
grepFilterSpecs: true,
|
|
},
|
|
setupNodeEvents(on, config) {
|
|
config = require("./cypress/support/cypress-grep/plugin")(config);
|
|
config = require("./cypress/plugins/index.js")(on, config);
|
|
on("after:spec", (spec, results) => {
|
|
if (results && results.video) {
|
|
return fs.unlink(results.video, function (err) {
|
|
if (err) {
|
|
console.warn(`Could not remove video - ${err}`);
|
|
} else {
|
|
console.log("File removed:", results.video);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return config;
|
|
},
|
|
baseUrl: "http://localhost:4173/",
|
|
specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
|
|
},
|
|
});
|