[Koha-bugs] [Bug 18974] Cataloging MARC21 record and adding item selenium test
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Dec 11 23:30:33 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18974
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Needs Signoff |Failed QA
CC| |david at davidnind.com
--- Comment #28 from David Nind <david at davidnind.com> ---
Rather than go through the setup process detailed in the patches, with KTD you
can start koha-testing-docker with:
ktd --selenium up
I think that should take care of all the setup requirements, but I could be
wrong. Hopefully ktd --selenium up should take care of the requirements now.
This worked with bug 30645
Revised test plan:
1. Start up koha-testing-docker (KTD) with selenium: ktd --selenium up
2. Apply the patch.
3. Run the tests: prove t/db_dependent/selenium/cataloging_workflow.t
4. The tests should pass!
Unsurprisingly (since this one has been around for a while), the new test fails
for me:
prove t/db_dependent/selenium/cataloging_workflow.t
t/db_dependent/selenium/cataloging_workflow.t .. 1/1
STRACE: /usr/share/perl5/Try/Tiny.pm:123 in Selenium::Remote::Driver::catch
{...}
/usr/share/perl5/Selenium/Remote/Driver.pm:361 in Try::Tiny::try
(eval 1729):1 in Selenium::Remote::Driver::__ANON__
(eval 1731):2 in Selenium::Remote::Driver::__ANON__
/usr/share/perl5/Selenium/Remote/Driver.pm:1340 in
Selenium::Remote::Driver::_execute_command
/usr/share/perl5/Selenium/Remote/Driver.pm:1340 in (eval)
/kohadevbox/koha/t/lib/Selenium.pm:174 in
Selenium::Remote::Driver::find_element
t/db_dependent/selenium/cataloging_workflow.t:62 in
t::lib::Selenium::click
Error while executing command: no such element: Unable to locate element:
//div[@id="container-main"]//a[contains(@href, "/cataloguing/addbooks.pl")] at
/usr/share/perl5/Selenium/Remote/Driver.pm line 411.
at /usr/share/perl5/Selenium/Remote/Driver.pm line 356.
# Looks like your test exited with 255 just after 1.
t/db_dependent/selenium/cataloging_workflow.t .. Dubious, test returned 255
(wstat 65280, 0xff00)
All 1 subtests passed
Test Summary Report
-------------------
t/db_dependent/selenium/cataloging_workflow.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Files=1, Tests=1, 13 wallclock secs ( 0.01 usr 0.00 sys + 0.66 cusr 0.10
csys = 0.77 CPU)
Result: FAIL
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list