Bug 38503 - Add a Cypress task to generate objects based on its swagger def spec
Summary: Add a Cypress task to generate objects based on its swagger def spec
Status: Pushed to main
Alias: None
Product: Koha
Classification: Unclassified
Component: Test Suite (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Jonathan Druart
QA Contact: Martin Renvoize (ashimema)
URL:
Keywords:
: 36607 (view as bug list)
Depends on:
Blocks: 38461
  Show dependency treegraph
 
Reported: 2024-11-21 12:55 UTC by Jonathan Druart
Modified: 2025-01-20 16:40 UTC (History)
7 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
This provides utilities for Cypress tests to generate JavaScript objects directly from the API definitions. They contain example data and can then be using to easily mock API responses in tests.
Version(s) released in:
25.05.00
Circulation function:


Attachments
Bug 38503: Read patron swagger spec file and implement buildSamplePatron (4.99 KB, patch)
2024-11-21 13:45 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 38503: Implement a plural form - buildSamplePatrons (2.42 KB, patch)
2024-11-21 13:45 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 38503: Same for libraries (2.79 KB, patch)
2024-11-21 13:45 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 38503: Have a generic buildSampleObject[s] (5.32 KB, patch)
2024-11-21 13:45 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 38503: Allow to pass values (2.54 KB, patch)
2024-11-21 13:45 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 38503: Deal with types that can be "null" (1.30 KB, patch)
2024-11-21 14:16 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 38503: Generate correct values for date and date-time (2.18 KB, patch)
2024-11-21 14:16 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 38503: [DO NOT PUSH] (follow-up) Generate correct values for date and date-time (183.67 KB, patch)
2024-11-22 10:57 UTC, Paul Derscheid
Details | Diff | Splinter Review
Bug 38503: [DO NOT PUSH] (follow-up) Upgrade @vue/cli-service for compat with node v22 (183.67 KB, patch)
2024-11-22 10:58 UTC, Paul Derscheid
Details | Diff | Splinter Review
Bug 38503: Do not list the objects (1.68 KB, patch)
2024-12-04 13:06 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 38503: Do not list the objects (1.70 KB, patch)
2024-12-04 13:14 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 38503: Read patron swagger spec file and implement buildSamplePatron (5.03 KB, patch)
2024-12-05 05:53 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Implement a plural form - buildSamplePatrons (2.47 KB, patch)
2024-12-05 05:53 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Same for libraries (2.84 KB, patch)
2024-12-05 05:53 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Have a generic buildSampleObject[s] (5.37 KB, patch)
2024-12-05 05:53 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Allow to pass values (2.59 KB, patch)
2024-12-05 05:53 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Deal with types that can be "null" (1.35 KB, patch)
2024-12-05 05:53 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Generate correct values for date and date-time (2.23 KB, patch)
2024-12-05 05:53 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: [DO NOT PUSH] (follow-up) Upgrade @vue/cli-service for compat with node v22 (183.73 KB, patch)
2024-12-05 05:53 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Do not list the objects (1.75 KB, patch)
2024-12-05 05:53 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: [PROPOSAL] deps: remove @vue/cli-service & babel (1.67 KB, patch)
2024-12-05 05:53 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: [DO NOT PUSH] Update yarn.lock for the previous [PROPOSAL] (204.81 KB, patch)
2024-12-05 05:53 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Read patron swagger spec file and implement buildSamplePatron (5.21 KB, patch)
2024-12-22 09:47 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Implement a plural form - buildSamplePatrons (2.47 KB, patch)
2024-12-22 09:47 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Same for libraries (2.84 KB, patch)
2024-12-22 09:47 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Have a generic buildSampleObject[s] (5.37 KB, patch)
2024-12-22 09:47 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Allow to pass values (2.59 KB, patch)
2024-12-22 09:47 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Deal with types that can be "null" (1.35 KB, patch)
2024-12-22 09:47 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Generate correct values for date and date-time (2.23 KB, patch)
2024-12-22 09:47 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Do not list the objects (1.75 KB, patch)
2024-12-22 09:47 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: [DO NOT PUSH] yarn.lock changes (1.83 KB, patch)
2024-12-22 09:47 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 38503: Read patron swagger spec file and implement buildSamplePatron (5.29 KB, patch)
2025-01-02 16:06 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review
Bug 38503: Implement a plural form - buildSamplePatrons (2.54 KB, patch)
2025-01-02 16:06 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review
Bug 38503: Same for libraries (2.91 KB, patch)
2025-01-02 16:06 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review
Bug 38503: Have a generic buildSampleObject[s] (5.44 KB, patch)
2025-01-02 16:06 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review
Bug 38503: Allow to pass values (2.66 KB, patch)
2025-01-02 16:06 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review
Bug 38503: Deal with types that can be "null" (1.42 KB, patch)
2025-01-02 16:06 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review
Bug 38503: Generate correct values for date and date-time (2.30 KB, patch)
2025-01-02 16:06 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review
Bug 38503: Do not list the objects (1.82 KB, patch)
2025-01-02 16:06 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review
Bug 38503: [DO NOT PUSH] yarn.lock changes (1.90 KB, patch)
2025-01-02 16:06 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review
Bug 38503: Merge the module.exports (1.99 KB, patch)
2025-01-20 09:56 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 38503: Merge the module.exports (1.44 KB, patch)
2025-01-20 09:59 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 38503: Do not generate too long strings (1.53 KB, patch)
2025-01-20 12:44 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2024-11-21 12:55:48 UTC
We have TestBuilder for the Perl tests.

However for the Cypress tests we have to:
1. either mock all the routes (which is painful and time-consuming),
2. or rely on the existing data in DB (which will produce failures if data has been inserted, and tests will have to cleanup before/after, which is painful, time-consuming and not robust)

We should have a way to generate objects easily, in order to mock the response of a GET route easily.

We can actually rely on the swagger spec files (the definition file) to generate random data and mock the response of routes.

The first intended goal is to provide tests for the tables (bug 38461) and allow future enhancements in this area (see dependent bugs of bug 36640).
Comment 1 Jonathan Druart 2024-11-21 13:45:05 UTC
Created attachment 174872 [details] [review]
Bug 38503: Read patron swagger spec file and implement buildSamplePatron
Comment 2 Jonathan Druart 2024-11-21 13:45:08 UTC
Created attachment 174873 [details] [review]
Bug 38503: Implement a plural form - buildSamplePatrons
Comment 3 Jonathan Druart 2024-11-21 13:45:11 UTC
Created attachment 174874 [details] [review]
Bug 38503: Same for libraries
Comment 4 Jonathan Druart 2024-11-21 13:45:14 UTC
Created attachment 174875 [details] [review]
Bug 38503: Have a generic buildSampleObject[s]
Comment 5 Jonathan Druart 2024-11-21 13:45:16 UTC
Created attachment 174876 [details] [review]
Bug 38503: Allow to pass values
Comment 6 Jonathan Druart 2024-11-21 14:16:22 UTC
Created attachment 174884 [details] [review]
Bug 38503: Deal with types that can be "null"
Comment 7 Jonathan Druart 2024-11-21 14:16:25 UTC
Created attachment 174885 [details] [review]
Bug 38503: Generate correct values for date and date-time
Comment 8 Paul Derscheid 2024-11-22 10:57:06 UTC
Created attachment 174921 [details] [review]
Bug 38503: [DO NOT PUSH] (follow-up) Generate correct values for date and date-time
Comment 9 Paul Derscheid 2024-11-22 10:58:37 UTC
Created attachment 174922 [details] [review]
Bug 38503: [DO NOT PUSH] (follow-up) Upgrade @vue/cli-service for compat with node v22
Comment 10 Paul Derscheid 2024-11-22 11:11:37 UTC
Sorry, forgot to edit the commit message the first time.

So for compatibility with node v22, I just upgraded @vue/cli-service to its latest version.

To reproduce:
1) Make sure you are on node v22
2) Apply the patch interactively without the updated lockfile
3) Run `yarn install`
4) Observe error:
kohadev-koha@kohadevbox:koha(bug_38503)$ yarn install
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
error @achrinza/node-ipc@9.2.5: The engine "node" is incompatible with this module. Expected version "8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18". Got "22.11.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
5) Apply the last patch as well
6) Observe success
kohadev-koha@kohadevbox:koha(bug_38503)$ yarn install
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@redocly/cli > redoc > @cfaester/enzyme-adapter-react-18@0.8.0" has unmet peer dependency "enzyme@^3.11.0".
warning " > eslint-config-prettier@9.1.0" has unmet peer dependency "eslint@>=7.0.0".
warning " > eslint-plugin-prettier@5.1.3" has unmet peer dependency "eslint@>=8.0.0".
warning " > eslint-plugin-prettier@5.1.3" has unmet peer dependency "prettier@>=3.0.0".
warning "swagger-cli > @apidevtools/swagger-cli > @apidevtools/swagger-parser@10.1.0" has unmet peer dependency "openapi-types@>=7".
[4/4] Building fresh packages...
Done in 303.71s.
Comment 11 Victor Grousset/tuxayo 2024-11-22 21:39:27 UTC
Does this really depend on vue-cli?

- I upgraded node to v22
- applied all patches
- removed vue-cli and babel deps
- sudo yarn install --modules-folder /kohadevbox/node_modules

and t/cypress/integration/t/mockData.ts ran after doing the same removals as:
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=174858&action=diff

cypress output confirms it's using node 22

Is there anything else to test?
Comment 12 Jonathan Druart 2024-12-04 13:06:26 UTC
Created attachment 175173 [details] [review]
Bug 38503: Do not list the objects

No need to list all the objects, just retrieve the spec depending on the
"object" var we pass.
Comment 13 Jonathan Druart 2024-12-04 13:14:28 UTC
Created attachment 175175 [details] [review]
Bug 38503: Do not list the objects

No need to list all the objects, just retrieve the spec depending on the
"object" var we pass.
Comment 14 Jonathan Druart 2024-12-04 13:31:42 UTC
Ready to go as a first step.
Comment 15 Victor Grousset/tuxayo 2024-12-05 05:53:16 UTC
Created attachment 175212 [details] [review]
Bug 38503: Read patron swagger spec file and implement buildSamplePatron

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 16 Victor Grousset/tuxayo 2024-12-05 05:53:19 UTC
Created attachment 175213 [details] [review]
Bug 38503: Implement a plural form - buildSamplePatrons

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 17 Victor Grousset/tuxayo 2024-12-05 05:53:21 UTC
Created attachment 175214 [details] [review]
Bug 38503: Same for libraries

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 18 Victor Grousset/tuxayo 2024-12-05 05:53:24 UTC
Created attachment 175215 [details] [review]
Bug 38503: Have a generic buildSampleObject[s]

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 19 Victor Grousset/tuxayo 2024-12-05 05:53:26 UTC
Created attachment 175216 [details] [review]
Bug 38503: Allow to pass values

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 20 Victor Grousset/tuxayo 2024-12-05 05:53:29 UTC
Created attachment 175217 [details] [review]
Bug 38503: Deal with types that can be "null"

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 21 Victor Grousset/tuxayo 2024-12-05 05:53:32 UTC
Created attachment 175218 [details] [review]
Bug 38503: Generate correct values for date and date-time

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 22 Victor Grousset/tuxayo 2024-12-05 05:53:37 UTC
Created attachment 175219 [details] [review]
Bug 38503: [DO NOT PUSH] (follow-up) Upgrade @vue/cli-service for compat with node v22

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 23 Victor Grousset/tuxayo 2024-12-05 05:53:40 UTC
Created attachment 175220 [details] [review]
Bug 38503: Do not list the objects

No need to list all the objects, just retrieve the spec depending on the
"object" var we pass.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 24 Victor Grousset/tuxayo 2024-12-05 05:53:42 UTC
Created attachment 175221 [details] [review]
Bug 38503: [PROPOSAL] deps: remove @vue/cli-service & babel

They really don't seem needed
Comment 25 Victor Grousset/tuxayo 2024-12-05 05:53:47 UTC
Created attachment 175222 [details] [review]
Bug 38503: [DO NOT PUSH] Update yarn.lock for the previous [PROPOSAL]
Comment 26 Victor Grousset/tuxayo 2024-12-05 06:01:16 UTC
It works! :) 150 runs done.
Without @vue/cli-service and babel. I'm also hammering bug 38461 tests. So it really really looks like cli-service isn't a dependency.
Hence the two last commits added to remove them.

It also works with @vue/cli-service and babel not removed.

-----

> Bug 38503: [DO NOT PUSH] (follow-up) Upgrade @vue/cli-service for compat with node v22

Assuming it's confirmed we don't need vue/cli-service & babel: The commit above would not be needed. But it worth mentioning that it had an issue for future node package stuff: It's a [DO NOT PUSH] commit that had the task of updating deps. So that update will be lost. We can't have anything meaningful in yarn.lock with the current workflow. (which seems to be good btw)
If only an RM/RMaint touches yark.lock then dependency updates need to be done in package.json.
Not only to work in our workflow but also to document accurately that we need more recent deps.
Comment 27 Victor Grousset/tuxayo 2024-12-07 03:59:25 UTC
additional info: still works if forgetting to upgrade node from 18 to 22. That's still a good opportunity to upgrade though.

(to test, edit version in /etc/apt/sources.list.d/nodesource.list and then `sudo apt update;sudo install nodejs`)
Comment 28 Jonathan Druart 2024-12-17 09:07:53 UTC
This patch should be moved to its own bug report.
"Bug 38503: [PROPOSAL] deps: remove @vue/cli-service & babel"
Comment 29 Victor Grousset/tuxayo 2024-12-22 09:47:07 UTC
Created attachment 175888 [details] [review]
Bug 38503: Read patron swagger spec file and implement buildSamplePatron

Test plan:
1. Install deps
     sudo yarn install --modules-folder /kohadevbox/node_modules
2. Run tests
     cypress run --config video=false --spec t/cypress/integration/t/mockData.ts

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 30 Victor Grousset/tuxayo 2024-12-22 09:47:10 UTC
Created attachment 175889 [details] [review]
Bug 38503: Implement a plural form - buildSamplePatrons

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 31 Victor Grousset/tuxayo 2024-12-22 09:47:13 UTC
Created attachment 175890 [details] [review]
Bug 38503: Same for libraries

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 32 Victor Grousset/tuxayo 2024-12-22 09:47:15 UTC
Created attachment 175891 [details] [review]
Bug 38503: Have a generic buildSampleObject[s]

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 33 Victor Grousset/tuxayo 2024-12-22 09:47:18 UTC
Created attachment 175892 [details] [review]
Bug 38503: Allow to pass values

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 34 Victor Grousset/tuxayo 2024-12-22 09:47:21 UTC
Created attachment 175893 [details] [review]
Bug 38503: Deal with types that can be "null"

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 35 Victor Grousset/tuxayo 2024-12-22 09:47:24 UTC
Created attachment 175894 [details] [review]
Bug 38503: Generate correct values for date and date-time

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 36 Victor Grousset/tuxayo 2024-12-22 09:47:26 UTC
Created attachment 175895 [details] [review]
Bug 38503: Do not list the objects

No need to list all the objects, just retrieve the spec depending on the
"object" var we pass.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Comment 37 Victor Grousset/tuxayo 2024-12-22 09:47:29 UTC
Created attachment 175896 [details] [review]
Bug 38503: [DO NOT PUSH] yarn.lock changes
Comment 38 Victor Grousset/tuxayo 2024-12-22 09:50:48 UTC
(In reply to Jonathan Druart from comment #28)
> This patch should be moved to its own bug report.
> "Bug 38503: [PROPOSAL] deps: remove @vue/cli-service & babel"

Moved to Bug 38770.

And not added as a dependency because there is no sign it's needed for the test plan to work (unless steps were missing?)

----

test plan added in 1st commit

----

yarn.lock changes commit added
Comment 39 Martin Renvoize (ashimema) 2025-01-02 16:06:35 UTC
Created attachment 176073 [details] [review]
Bug 38503: Read patron swagger spec file and implement buildSamplePatron

Test plan:
1. Install deps
     sudo yarn install --modules-folder /kohadevbox/node_modules
2. Run tests
     cypress run --config video=false --spec t/cypress/integration/t/mockData.ts

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 40 Martin Renvoize (ashimema) 2025-01-02 16:06:38 UTC
Created attachment 176074 [details] [review]
Bug 38503: Implement a plural form - buildSamplePatrons

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 41 Martin Renvoize (ashimema) 2025-01-02 16:06:41 UTC
Created attachment 176075 [details] [review]
Bug 38503: Same for libraries

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 42 Martin Renvoize (ashimema) 2025-01-02 16:06:44 UTC
Created attachment 176076 [details] [review]
Bug 38503: Have a generic buildSampleObject[s]

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 43 Martin Renvoize (ashimema) 2025-01-02 16:06:47 UTC
Created attachment 176077 [details] [review]
Bug 38503: Allow to pass values

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 44 Martin Renvoize (ashimema) 2025-01-02 16:06:50 UTC
Created attachment 176078 [details] [review]
Bug 38503: Deal with types that can be "null"

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 45 Martin Renvoize (ashimema) 2025-01-02 16:06:53 UTC
Created attachment 176079 [details] [review]
Bug 38503: Generate correct values for date and date-time

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 46 Martin Renvoize (ashimema) 2025-01-02 16:06:56 UTC
Created attachment 176080 [details] [review]
Bug 38503: Do not list the objects

No need to list all the objects, just retrieve the spec depending on the
"object" var we pass.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 47 Martin Renvoize (ashimema) 2025-01-02 16:06:59 UTC
Created attachment 176081 [details] [review]
Bug 38503: [DO NOT PUSH] yarn.lock changes

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 48 Martin Renvoize (ashimema) 2025-01-02 16:09:43 UTC
This is a great step forward, nice approach.

All works as expected, mocking endpoints is easy now :)

Passing QA

Minor niggle.. we need some good release notes for this one and good developer documentation somewhere to encourage it's adoption.
Comment 49 Victor Grousset/tuxayo 2025-01-02 23:20:19 UTC
> Minor niggle.. we need some good release notes for this one

Here is a first try.


> and good developer documentation somewhere to encourage it's adoption.

There doesn't seem to be documentation for Cypress tests for now ^^" . Much less for mocking API responses where this would fit well.
Comment 50 Martin Renvoize (ashimema) 2025-01-07 14:26:28 UTC
Thanks :)
Comment 51 Matt Blenkinsop 2025-01-14 13:39:00 UTC
*** Bug 36607 has been marked as a duplicate of this bug. ***
Comment 52 Katrin Fischer 2025-01-16 14:28:30 UTC
Pushed for 25.05!

Well done everyone, thank you!
Comment 53 Jonathan Druart 2025-01-20 09:56:49 UTC
Created attachment 176775 [details] [review]
Bug 38503: Merge the module.exports

We redefine it and so the query/mysql plugin is not available

It fixes csrf.ts
14:36:17 koha_1       | The task &apos;query&apos; was not handled in the setupNodeEvents method. The following tasks are registered: buildSampleObject, buildSampleObjects
Comment 54 Jonathan Druart 2025-01-20 09:59:17 UTC
Created attachment 176776 [details] [review]
Bug 38503: Merge the module.exports

We redefine it and so the query/mysql plugin is not available

It fixes csrf.ts
14:36:17 koha_1       | The task &apos;query&apos; was not handled in the setupNodeEvents method. The following tasks are registered: buildSampleObject, buildSampleObjects
Comment 55 Jonathan Druart 2025-01-20 12:44:51 UTC
Created attachment 176792 [details] [review]
Bug 38503: Do not generate too long strings
Comment 56 Katrin Fischer 2025-01-20 16:40:26 UTC
Please set status to PQA when you attach follow-ups for me to push. Helps me keep on top of things. Last 2 patches picked for main.