https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41831

Lucas Gass (lukeg) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #192999|0                           |1
        is obsolete|                            |

--- Comment #2 from Lucas Gass (lukeg) <[email protected]> ---
Created attachment 193010
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193010&action=edit
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 <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to