Bugzilla – Attachment 156072 Details for
Bug 34478
Full CSRF protection
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34478: [DO NOT PUSH] Cypress tests - cypress-mysql config
Bug-34478-DO-NOT-PUSH-Cypress-tests---cypress-mysq.patch (text/plain), 1.75 KB, created by
Jonathan Druart
on 2023-09-22 11:38:21 UTC
(
hide
)
Description:
Bug 34478: [DO NOT PUSH] Cypress tests - cypress-mysql config
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-09-22 11:38:21 UTC
Size:
1.75 KB
patch
obsolete
>From ce29184c57715a7d2685ebcfc91371aa0072f45d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 22 Sep 2023 11:16:21 +0200 >Subject: [PATCH] Bug 34478: [DO NOT PUSH] Cypress tests - cypress-mysql config > >--- > cypress.config.ts | 10 +++++++++- > t/cypress/plugins/index.js | 6 ++++++ > t/cypress/support/e2e.js | 3 +++ > 3 files changed, 18 insertions(+), 1 deletion(-) > >diff --git a/cypress.config.ts b/cypress.config.ts >index d6814be6e21..95d03d37e87 100644 >--- a/cypress.config.ts >+++ b/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: { >diff --git a/t/cypress/plugins/index.js b/t/cypress/plugins/index.js >index cf6b72f611c..e35c437a8bc 100644 >--- a/t/cypress/plugins/index.js >+++ b/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); >+} >diff --git a/t/cypress/support/e2e.js b/t/cypress/support/e2e.js >index a423c73c7c8..2e4eb182b11 100644 >--- a/t/cypress/support/e2e.js >+++ b/t/cypress/support/e2e.js >@@ -129,3 +129,6 @@ cy.get_vendors_to_relate = () => { > } > ] > } >+ >+const mysql = require('cypress-mysql'); >+mysql.addCommands(); >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34478
:
154241
|
154242
|
154243
|
154244
|
154245
|
154246
|
154247
|
154248
|
154249
|
154250
|
154251
|
154252
|
154253
|
154254
|
155971
|
155972
|
155973
|
155974
|
155975
|
155976
|
155977
|
155978
|
155979
|
155980
|
155981
|
155982
|
155983
|
155984
|
155985
|
155986
|
155987
|
155988
|
155989
|
155990
|
156070
|
156071
|
156072
|
156073
|
156074
|
162114
|
162165
|
162630