The thDrupalFetchURLTest sometimes fails on the pipeline, but restarting fixes the error

Created on 8 October 2024, about 1 month ago

Problem/Motivation

An example of the failed pipeline: https://git.drupalcode.org/project/test_helpers/-/jobs/2989772

  ✖ TypeError
   Cannot read properties of null (reading 'cookies')
    Error location:
    /builds/project/test_helpers/tests/modules/test_helpers_functional/tests/src/Nightwatch/Tests/thDrupalFetchURLTest.js:
    –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
     68 |       '/test-helpers-test/json-response-1',
     69 |     );
     70 |     assert(response.cookies.some((obj) => obj.name === 'TestCookie2')); 
     71 |     assert(response.cookies.some((obj) => obj.name === 'TestCookie1'));
     72 |     let browserCookies = await browser.getCookies();
    –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
    Stack Trace :
    at Test thDrupalFetchURL (/builds/project/test_helpers/tests/modules/test_helpers_functional/tests/src/Nightwatch/Tests/thDrupalFetchURLTest.js:70:21)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at listOnTimeout (node:internal/timers:538:9)
    at process.processTimers (node:internal/timers:512:7)
  FAILED: 1 assertions failed and  13 passed (509ms)

Would be great to fix this.

🐛 Bug report
Status

Active

Version

1.5

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024