Bugzilla – Attachment 183350 Details for
Bug 40169
Cypress tests - mockData should not replace "_id" fields if passed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40169: Add a test
Bug-40169-Add-a-test.patch (text/plain), 966 bytes, created by
Jonathan Druart
on 2025-06-18 20:24:19 UTC
(
hide
)
Description:
Bug 40169: Add a test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-06-18 20:24:19 UTC
Size:
966 bytes
patch
obsolete
>From 002ff514cb12d00f09a4b500a15525b5b5f3e2d3 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 18 Jun 2025 22:23:19 +0200 >Subject: [PATCH] Bug 40169: Add a test > >--- > t/cypress/integration/t/mockData.ts | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/t/cypress/integration/t/mockData.ts b/t/cypress/integration/t/mockData.ts >index 8c63fb75f72..1c586fac766 100644 >--- a/t/cypress/integration/t/mockData.ts >+++ b/t/cypress/integration/t/mockData.ts >@@ -74,4 +74,14 @@ describe("Generate objects", () => { > ); > }); > }); >+ >+ it.only("should not overwrite _id if passed", () => { >+ const home_library_id = "LIB4TEST"; >+ cy.task("buildSampleObject", { >+ object: "item", >+ values: { home_library_id }, >+ }).then(mockItem => { >+ expect(mockItem.home_library_id).to.equal(home_library_id); >+ }); >+ }); > }); >-- >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 40169
:
183350
|
183351
|
183378
|
183379