mirror of
https://github.com/knadh/listmonk.git
synced 2025-03-01 08:45:28 +08:00
- Don't setup username+password from config file during fresh install. - If `LISTMONK_ADMIN_USER` and `LISTMONK_ADMIN_PASSWORD` env vars are set during `--install`, use them. - Otherwise, render new username+password creation UI on `/admin/login`. - Add Cypress tests.
25 lines
908 B
JavaScript
Vendored
25 lines
908 B
JavaScript
Vendored
const { defineConfig } = require('cypress');
|
|
|
|
module.exports = defineConfig({
|
|
env: {
|
|
apiUrl: 'http://localhost:9000',
|
|
serverInitCmd:
|
|
'pkill -9 listmonk | cd ../ && LISTMONK_ADMIN_USER=admin LISTMONK_ADMIN_PASSWORD=listmonk ./listmonk --install --yes && ./listmonk > /dev/null 2>/dev/null &',
|
|
serverInitBlankCmd:
|
|
'pkill -9 listmonk | cd ../ && ./listmonk --install --yes && ./listmonk > /dev/null 2>/dev/null &',
|
|
LISTMONK_ADMIN_USER: 'admin',
|
|
LISTMONK_ADMIN_PASSWORD: 'listmonk',
|
|
},
|
|
viewportWidth: 1400,
|
|
viewportHeight: 950,
|
|
e2e: {
|
|
testIsolation: false,
|
|
experimentalSessionAndOrigin: false,
|
|
// We've imported your old cypress plugins here.
|
|
// You may want to clean this up later by importing these.
|
|
setupNodeEvents(on, config) {
|
|
return require('./cypress/plugins/index.js')(on, config);
|
|
},
|
|
baseUrl: 'http://localhost:9000',
|
|
},
|
|
});
|