Bugzilla – Attachment 183378 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), 1012 bytes, created by
David Nind
on 2025-06-19 11:17:42 UTC
(
hide
)
Description:
Bug 40169: Add a test
Filename:
MIME Type:
Creator:
David Nind
Created:
2025-06-19 11:17:42 UTC
Size:
1012 bytes
patch
obsolete
>From e7b95d8ef0890420820d17a5c51cd97059ed716f 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> >--- > 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 8c63fb75f7..1c586fac76 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.39.5
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