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

--- Comment #23 from David Nind <[email protected]> ---
I got the same errors for RecordSources_spec.ts as in comment #21).

When running all the Cypress tests, I got this straight after it starts - not
sure whether this is useful or not:

------------------

perl /kohadevbox/misc4dev/run_tests.pl --run-cypress-tests-only
Running [koha-shell kohadev -c "SELENIUM_PORT=4444
KOHA_INTRANET_URL=http://koha:8081 SELENIUM_ADDR=selenium KOHA_USER=koha
KOHA_TESTING=1 NODE_PATH=/kohadevbox/node_modules
JUNIT_OUTPUT_FILE=junit_main.xml KOHA_OPAC_URL=http://koha:8080 KOHA_PASS=koha
KOHA_NO_TABLE_LOCKS=1
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/kohadevbox/bin:/kohadevbox/koha/node_modules/.bin/:/kohadevbox/node_modules/.bin/
yarn cypress run --config video=false,screenshotOnRunFailure=false --env
KOHA_USER=koha,KOHA_PASS=koha --reporter junit --reporter-options
'mochaFile=junit-cypress-[hash].xml,toConsole=true'";err=$?; if [ $err -eq 0 ];
then echo all good; elif [ $err -eq 127 ]; then  echo '<?xml version="1.0"
encoding="UTF-8"?><testsuites name="Cypress run" time="0.0000" tests="1"
failures="1"><testsuite name="Root Suite" timestamp="2024-09-09T20:52:28+00:00"
tests="0" file="" time="0.0000" failures="1"><testcase name="Executable not
found"><failure message="Cypress executable not found."
type="AssertionError">Cypress executable not
found!</failure></testcase></testsuite></testsuites>' > junit-cypress-exec.xml;
else echo "Cypress returned error code '$err'"; fi; exit $err; ]...
yarn run v1.22.22
$ cypress run --config video=false,screenshotOnRunFailure=false --env
KOHA_USER=koha,KOHA_PASS=koha --reporter junit --reporter-options
mochaFile=junit-cypress-[hash].xml,toConsole=true

DevTools listening on
ws://127.0.0.1:42441/devtools/browser/3585392f-09c7-4db1-8145-881da9f2eb62
[4212:0909/205229.359611:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3
extension not supported.
Missing baseUrl in compilerOptions. tsconfig-paths will be skipped
Couldn't determine Mocha version

....

Messages the same as on comment #21.

.....

    Spec                                              Tests  Passing  Failing 
Pending  Skipped
✖  Admin/RecordSources_spec.ts              00:08        5        4        1   
    -        - 

 ✖  1 of 17 failed (6%)                      04:43       85       84        1  
     -        -  

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this
command.
Cypress returned error code '1'

------------------

Things I did:
1. I removed all the docker images/volumes and did a fresh pull.
2. Started up KTD with Selenium: ktd --selenium up
3. Accessed the Koha shell as root: ktd --root --shell
4. Ran all the Cypress tests:
   4.1 cd koha
   4.2 perl /kohadevbox/misc4dev/run_tests.pl --run-cypress-tests-only
5. The tests failed as above.
6. I repeated step 4.2.:
   6.1 The first three times, they failed.    
   6.2 The fourth time, they passed.
   6.3 The fifth time, they failed
7. Running just the single test (ktd --shell (not as root)) - yarn cypress run
--spec t/cypress/integration/Admin/RecordSources_spec.ts:
   7.1 First time it passes
   7.2 Second time it fails
   7.3 Third to eighth time it passes
   7.4 I didn't do any more...

I'll attach the output from the failure.

Not sure if this helps!

-- 
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