Bugzilla – Attachment 158124 Details for
Bug 35201
Cypress tests for the Preservation module are failing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35201: (bug 30708 follow-up) Fix Preservation/Settings.ts
Bug-35201-bug-30708-follow-up-Fix-PreservationSett.patch (text/plain), 1.64 KB, created by
Jonathan Druart
on 2023-10-31 14:31:04 UTC
(
hide
)
Description:
Bug 35201: (bug 30708 follow-up) Fix Preservation/Settings.ts
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-10-31 14:31:04 UTC
Size:
1.64 KB
patch
obsolete
>From 3f714003f459cf3c7c03f623e0431cd9c19b2966 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 31 Oct 2023 15:03:23 +0100 >Subject: [PATCH] Bug 35201: (bug 30708 follow-up) Fix Preservation/Settings.ts > >We were not correctly mocking the config route from the tests >--- > t/cypress/integration/Preservation/Settings.ts | 15 +++------------ > 1 file changed, 3 insertions(+), 12 deletions(-) > >diff --git a/t/cypress/integration/Preservation/Settings.ts b/t/cypress/integration/Preservation/Settings.ts >index e72d4b5858b..9aff16a927d 100644 >--- a/t/cypress/integration/Preservation/Settings.ts >+++ b/t/cypress/integration/Preservation/Settings.ts >@@ -38,19 +38,10 @@ describe("Processings", () => { > cy.title().should("eq", "Koha staff interface"); > cy.intercept( > "GET", >- "/cgi-bin/koha/svc/config/systempreferences/?pref=PreservationModule", >- '{"value":"1"}' >- ); >- cy.intercept( >- "GET", >- "/cgi-bin/koha/svc/config/systempreferences/?pref=PreservationNotForLoanWaitingListIn", >- '{"value":"24"}' >- ); >- cy.intercept( >- "GET", >- "/cgi-bin/koha/svc/config/systempreferences/?pref=PreservationNotForLoanDefaultTrainIn", >- '{"value":"42"}' >+ "/api/v1/preservation/config", >+ '{"permissions":{"manage_sysprefs":"1"},"settings":{"enabled":"1","not_for_loan_default_train_in":"42","not_for_loan_waiting_list_in": "24"}}' > ); >+ > cy.intercept( > "GET", > "/api/v1/authorised_value_categories/NOT_LOAN/authorised_values", >-- >2.34.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 35201
:
158123
|
158124
|
158135
|
158136