2024-10-14 13:00:01 +08:00
|
|
|
const { defineConfig } = require('cypress');
|
2022-10-19 00:28:57 +08:00
|
|
|
|
|
|
|
module.exports = defineConfig({
|
|
|
|
env: {
|
|
|
|
apiUrl: 'http://localhost:9000',
|
|
|
|
serverInitCmd:
|
2024-10-26 22:17:01 +08:00
|
|
|
'pkill -9 listmonk | cd ../ && LISTMONK_ADMIN_USER=admin LISTMONK_ADMIN_PASSWORD=listmonk ./listmonk --install --yes && ./listmonk > /dev/null 2>/dev/null &',
|
|
|
|
serverInitBlankCmd:
|
2022-10-19 00:28:57 +08:00
|
|
|
'pkill -9 listmonk | cd ../ && ./listmonk --install --yes && ./listmonk > /dev/null 2>/dev/null &',
|
2024-10-26 22:17:01 +08:00
|
|
|
LISTMONK_ADMIN_USER: 'admin',
|
|
|
|
LISTMONK_ADMIN_PASSWORD: 'listmonk',
|
2022-10-19 00:28:57 +08:00
|
|
|
},
|
2024-10-26 22:17:01 +08:00
|
|
|
viewportWidth: 1400,
|
2022-10-19 00:28:57 +08:00
|
|
|
viewportHeight: 950,
|
|
|
|
e2e: {
|
2023-12-23 17:14:50 +08:00
|
|
|
testIsolation: false,
|
|
|
|
experimentalSessionAndOrigin: false,
|
2022-10-19 00:28:57 +08:00
|
|
|
// We've imported your old cypress plugins here.
|
|
|
|
// You may want to clean this up later by importing these.
|
|
|
|
setupNodeEvents(on, config) {
|
2024-10-14 13:00:01 +08:00
|
|
|
return require('./cypress/plugins/index.js')(on, config);
|
2022-10-19 00:28:57 +08:00
|
|
|
},
|
2024-10-14 13:00:01 +08:00
|
|
|
baseUrl: 'http://localhost:9000',
|
2022-10-19 00:28:57 +08:00
|
|
|
},
|
2024-10-14 13:00:01 +08:00
|
|
|
});
|