Skip to content
Snippets Groups Projects
Commit 70a5687a authored by jurgenhaas's avatar jurgenhaas
Browse files

docker/cypress#1 Update to Cypress 11.1.0 and provide default cypress config files

parent 5a8be92c
No related branches found
No related tags found
1 merge request!44Merging develop into main
Pipeline #688033 passed
This commit is part of merge request !44. Comments created here will be created in the context of that merge request.
......@@ -186,7 +186,7 @@ class Handler extends BaseHandler {
],
'cypress' => [
'enable' => $this->env->receiveGlobal('CYPRESS', 'Cypress', '0'),
'version' => '10.10.0',
'version' => '11.1.0',
],
];
}
......@@ -557,6 +557,23 @@ class Handler extends BaseHandler {
'dest' => $projectRoot . '/tests',
],
];
if ($this->config->readValue(['cypress', 'enable'])) {
$files['cypress.config.js'] = [
'source' => 'tests/',
'dest' => $projectRoot . '/tests',
'add2git' => TRUE,
];
$files['commands.js'] = [
'source' => 'tests/cypress/support/',
'dest' => $projectRoot . '/tests/cypress/support',
'add2git' => TRUE,
];
$files['e2e.js'] = [
'source' => 'tests/cypress/support/',
'dest' => $projectRoot . '/tests/cypress/support',
'add2git' => TRUE,
];
}
if (getenv('LAKEDROPS_BUILD_NG') === 'yes') {
if ($this->config->readValue(['backup', 'enable'])) {
$files['config.yaml'] = [
......
const { defineConfig } = require('cypress')
module.exports = defineConfig({
e2e: {
watchForFileChanges: false,
setupNodeEvents(on, config) {
// implement node event listeners here
},
}
})
import '/e2escaffold/commands'
import './commands'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment