Koha-clms/t/cypress/integration/ERM
Jonathan Druart b714b4b8f9
Bug 41831: Mock POST /packages in Dialog_spec.ts
ERM/Titles_spec.ts fails if run after ERM/Dialog_spec.ts because Dialog's "...created!" test create a package and does not delete it.

02:48:52 koha-1      |       <failure message="Timed out retrying after 10000ms: Expected to find content: &apos;There are no packages created yet&apos; within the element: &lt;fieldset#resources_relationship.rows&gt; but never did." type="AssertionError"><![CDATA[AssertionError: Timed out retrying after 10000ms: Expected to find content: 'There are no packages created yet' within the element: <fieldset#resources_relationship.rows> but never did.

Test plan:
0. Do not apply the patch
1. yarn cypress run --spec t/cypress/integration/ERM/Dialog_spec.ts,t/cypress/integration/ERM/Titles_spec.ts
=> FAIL
2. Notice that one entry has been created in the DB table erm_eholdings_packages
3. Delete the DB entry:
  sudo koha-mysql kohadev -e 'DELETE FROM erm_eholdings_packages'
4. Apply this patch
5. Repeat 1
=> SUCCESS
6. Notice that no new entry has been created in erm_eholdings_packages

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2026-02-12 07:58:48 -07:00
..
Agreements_spec.ts Bug 40191: Update Cypress tests for split button navigation changes 2026-01-22 09:25:55 -07:00
DataProviders_spec.ts Bug 41001: Add cypress test 2025-11-07 10:54:21 -07:00
Dialog_spec.ts Bug 41831: Mock POST /packages in Dialog_spec.ts 2026-02-12 07:58:48 -07:00
Licenses_spec.ts Bug 40191: Update Cypress tests for split button navigation changes 2026-01-22 09:25:55 -07:00
Main.ts Revert "Bug 41173: Add a Cypress test" 2026-02-06 09:58:51 -07:00
ModuleDashboard_spec.ts Bug 39320: (QA follow-up): Simplify widget tests 2026-01-13 15:03:37 -07:00
Packages_spec.ts Bug 40191: Update Cypress tests for split button navigation changes 2026-01-22 09:25:55 -07:00
Searchbar_spec.ts Bug 35402: Fix cypress tests 2024-09-09 11:44:19 +02:00
Titles_spec.ts Bug 40191: Update Cypress tests for split button navigation changes 2026-01-22 09:25:55 -07:00
UsageReports_spec.ts Bug 38899: Fix Cypress tests 2025-07-07 10:20:28 -06:00
UserRoles_spec.ts Bug 38201: Update Cypress tests 2025-10-02 09:39:10 -06:00