Bug 36177: Cypress tests - cypress-mysql config

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2023-09-22 11:16:21 +02:00 committed by Katrin Fischer
parent 8732405f04
commit 06c62ab84a
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
3 changed files with 18 additions and 1 deletions

View File

@ -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: {

View File

@ -11,3 +11,9 @@ module.exports = (on, config) => {
return config
}
const mysql = require('cypress-mysql');
module.exports = (on, config) => {
mysql.configurePlugin(on);
}

View File

@ -671,3 +671,6 @@ cy.getSushiService = () => {
"url": "https:\/\/onlinelibrary.wiley.com\/reports\/"
}
}
const mysql = require('cypress-mysql');
mysql.addCommands();