Bugzilla – Attachment 158136 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
Tomás Cohen Arazi (tcohen)
on 2023-10-31 15:12:34 UTC
(
hide
)
Description:
Bug 35201: (bug 30708 follow-up) Fix Preservation/Settings.ts
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2023-10-31 15:12:34 UTC
Size:
1.64 KB
patch
obsolete
>From 9fdd3938af4415e9dc213306aa515f44054f4596 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.42.0
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