Bugzilla – Attachment 184092 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), 1.03 KB, created by
Matt Blenkinsop
on 2025-07-15 13:29:29 UTC
(
hide
)
Description:
Bug 40169: Add a test
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2025-07-15 13:29:29 UTC
Size:
1.03 KB
patch
obsolete
>From 67f877e6ee06349deed8ae20a4257469f3e33db0 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 > >Signed-off-by: David Nind <david@davidnind.com> > >Amended by: Jonathan Druart >Remove .only >--- > 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..1d6d21df0a2 100644 >--- a/t/cypress/integration/t/mockData.ts >+++ b/t/cypress/integration/t/mockData.ts >@@ -74,4 +74,14 @@ describe("Generate objects", () => { > ); > }); > }); >+ >+ it("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.48.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
|
183925
|
183926
|
183927
|
184092
|
184093
|
184096
|
184097