@@ -, +, @@ --- cypress.config.ts | 10 +++++++++- t/cypress/plugins/index.js | 6 ++++++ t/cypress/support/e2e.js | 3 +++ 3 files changed, 18 insertions(+), 1 deletion(-) --- a/cypress.config.ts +++ a/cypress.config.ts @@ -8,9 +8,17 @@ export default defineConfig({ e2e: { experimentalStudio: true, - baseUrl: "http://localhost:8081", + baseUrl: "http://kohadev-intra.mydnsname.org:8081", specPattern: "t/cypress/integration/**/*.*", supportFile: "t/cypress/support/e2e.js", + env: { + db: { + host: "db", + user: "koha_kohadev", + password: "password", + database: "koha_kohadev", + }, + }, }, component: { --- a/t/cypress/plugins/index.js +++ a/t/cypress/plugins/index.js @@ -11,3 +11,9 @@ module.exports = (on, config) => { return config } + +const mysql = require('cypress-mysql'); + +module.exports = (on, config) => { + mysql.configurePlugin(on); +} --- a/t/cypress/support/e2e.js +++ a/t/cypress/support/e2e.js @@ -129,3 +129,6 @@ cy.get_vendors_to_relate = () => { } ] } + +const mysql = require('cypress-mysql'); +mysql.addCommands(); --