27 lines
973 B
JavaScript
27 lines
973 B
JavaScript
|
|
const { defineConfig } = require('cypress');
|
||
|
|
|
||
|
|
module.exports = defineConfig({
|
||
|
|
env: {
|
||
|
|
apiUrl: 'http://localhost:9000',
|
||
|
|
serverInitCmd:
|
||
|
|
'pkill -9 eaglecast; cd ../ && EAGLECAST_ADMIN_USER=admin EAGLECAST_ADMIN_PASSWORD=eaglecast ./eaglecast --install --yes && setsid ./eaglecast </dev/null >/dev/null 2>&1 &',
|
||
|
|
serverInitBlankCmd:
|
||
|
|
'pkill -9 eaglecast; cd ../ && ./eaglecast --install --yes && setsid ./eaglecast </dev/null >/dev/null 2>&1 &',
|
||
|
|
EAGLECAST_ADMIN_USER: 'admin',
|
||
|
|
EAGLECAST_ADMIN_PASSWORD: 'eaglecast',
|
||
|
|
},
|
||
|
|
viewportWidth: 1400,
|
||
|
|
viewportHeight: 950,
|
||
|
|
e2e: {
|
||
|
|
experimentalRunAllSpecs: true,
|
||
|
|
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',
|
||
|
|
},
|
||
|
|
});
|