Bug 41961

Summary: Cypress tests: Can we find an elegant way to mock C4::Context->config?
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: Test SuiteAssignee: Chris Cormack <chris>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: jonathan.druart, pedro.amorim
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Marcel de Rooy 2026-03-02 09:58:37 UTC
See also some discussion on bug 41247.
On that bug report we modify koha-conf.xml temporarily during a test.
Comment 1 Marcel de Rooy 2026-03-03 15:54:23 UTC
Couldnt we do something similar like the OVERRIDE_SYSPREF_var stuff here ?
Comment 2 Marcel de Rooy 2026-03-03 15:56:16 UTC
(In reply to Marcel de Rooy from comment #1)
> Couldnt we do something similar like the OVERRIDE_SYSPREF_var stuff here ?

Would be useful for instance to also disable plugins while running specific maintenance scripts (when you know what you are doing).