24af5ad0dd
refs https://github.com/TryGhost/Team/issues/1780 This commit adds some Cypress tests as a POC to the project. If we decide to go with Cypress, we can add more tests to cover the rest of the codebase. The main reason to have a E2E framework is that some editor related UI is hard to test with the React tests because it uses JSDOM.
18 lines
368 B
JavaScript
18 lines
368 B
JavaScript
const {defineConfig} = require('cypress');
|
|
|
|
module.exports = defineConfig({
|
|
component: {
|
|
devServer: {
|
|
framework: 'create-react-app',
|
|
bundler: 'webpack'
|
|
}
|
|
},
|
|
|
|
e2e: {
|
|
baseUrl: 'http://localhost:4000',
|
|
setupNodeEvents(on, config) {
|
|
// implement node event listeners here
|
|
}
|
|
}
|
|
});
|