Bugzilla – Attachment 163036 Details for
Bug 36177
We need integration tests to cover CSRF checks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36177: Cypress tests - cypress-mysql config
Bug-36177-Cypress-tests---cypress-mysql-config.patch (text/plain), 1.88 KB, created by
Nick Clemens (kidclamp)
on 2024-03-11 14:16:30 UTC
(
hide
)
Description:
Bug 36177: Cypress tests - cypress-mysql config
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-03-11 14:16:30 UTC
Size:
1.88 KB
patch
obsolete
>From dbed8fa3a1882b990dac25c4d7edf01278b7cefd 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 36177: Cypress tests - cypress-mysql config > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > 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 c0f4ef5cb86..afbb2ccea91 100644 >--- a/t/cypress/support/e2e.js >+++ b/t/cypress/support/e2e.js >@@ -671,3 +671,6 @@ cy.getSushiService = () => { > "url": "https:\/\/onlinelibrary.wiley.com\/reports\/" > } > } >+ >+const mysql = require('cypress-mysql'); >+mysql.addCommands(); >-- >2.30.2
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 36177
:
162532
|
162533
|
162534
|
162576
|
162984
|
162985
|
162986
|
163035
| 163036 |
163037